Skip to content

Commit

Permalink
use existing openssl package over hunter if available
Browse files Browse the repository at this point in the history
  • Loading branch information
zerotacg committed Jan 21, 2024
1 parent 1d78df9 commit 42262cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,11 @@ IF(HUNTER_ENABLED)
FIND_PACKAGE(libxml2 CONFIG REQUIRED)
SET(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} libxml2::libxml2)

# HUNTER_ADD_PACKAGE(OpenSSL)
# cross compiling doesn't quite work on the hunter openssl package therefor compile it separately and use it
FIND_PACKAGE(OpenSSL QUIET)
if(NOT OpenSSL_FOUND)
HUNTER_ADD_PACKAGE(OpenSSL)
endif()
FIND_PACKAGE(OpenSSL REQUIRED)
# TODO: is OpenSSL::Crypto only needed for WIN32?
SET(OPENSSL_LIBRARIES OpenSSL::SSL OpenSSL::Crypto)
Expand Down

0 comments on commit 42262cc

Please sign in to comment.