require openssl explicitly for lokinet-bootstrap

This commit is contained in:
Jeff Becker 2021-04-16 09:40:36 -04:00
parent 27c80a2638
commit 77de60af91
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,11 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
endif()
target_link_libraries(lokinet-bootstrap PUBLIC cpr::cpr)
if(NOT WIN32)
find_package(OpenSSL REQUIRED)
# because debian sid's curl doesn't link against openssl for some godawful cursed reason
target_link_libraries(lokinet-bootstrap PUBLIC OpenSSL::Crypto)
endif()
foreach(exe lokinet lokinet-vpn lokinet-bootstrap)
if(WIN32 AND NOT MSVC_VERSION)