Skip to content

Commit

Permalink
Test hardcoded openssl dir
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkoBarisic committed Jun 19, 2024
1 parent cb4e42f commit 5dfe442
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ set(THREADS_PREFER_PTHREAD_FLAG TRUE)
if(NOT MGCONSOLE_ON_LINUX OR MGCONSOLE_STATIC_SSL)
set(OPENSSL_USE_STATIC_LIBS TRUE)
endif()
if (MGCONSOLE_ON_WINDOWS)
set(OPENSSL_INCLUDE_DIR "C:/msys64/mingw64/include")
set(OPENSSL_LIBRARIES "C:/msys64/mingw64/lib/libssl.a" "C:/msys64/mingw64/lib/libcrypto.a")
else()
find_package(OpenSSL REQUIRED)
endif()

set(OPENSSL_INCLUDE_DIR "C:/msys64/mingw64/include")
set(OPENSSL_LIBRARIES "C:/msys64/mingw64/lib/libssl.a" "C:/msys64/mingw64/lib/libcrypto.a")
# find_package(OpenSSL REQUIRED)

if(MGCONSOLE_ON_OSX)
set(MACOSX_OPENSSL_ROOTDIR_FLAG "-DOPENSSL_ROOT_DIR=${OPENSSL_ROOT_DIR}")
endif()
Expand Down

0 comments on commit 5dfe442

Please sign in to comment.