Skip to content

Commit

Permalink
oops, dont force linking openssl static when we arent doing static build
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Oct 18, 2024
1 parent 76d0cd0 commit bab4c1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ if(APPLE)
find_package(OpenSSL REQUIRED)
else()
if(MINGW OR NOT WIN32)
set(OPENSSL_USE_STATIC_LIBS TRUE)
if(NOT BUILD_SHARED_LIBS)
set(OPENSSL_USE_STATIC_LIBS TRUE)
endif()
find_package(OpenSSL REQUIRED)
endif()
endif()
Expand Down

0 comments on commit bab4c1c

Please sign in to comment.