Fixed issues with OpenSSL library finding
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
|
||||
# optional SSL library
|
||||
if (USE_SSL)
|
||||
add_compile_definitions(HAVE_SSL)
|
||||
find_package(OPENSSL REQUIRED)
|
||||
find_package(OpenSSL REQUIRED)
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
endif (USE_SSL)
|
||||
|
||||
|
||||
@@ -409,7 +409,6 @@ foreach(_comp IN LISTS OpenSSL_FIND_COMPONENTS)
|
||||
endforeach()
|
||||
unset(_comp)
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
||||
find_package_handle_standard_args(OpenSSL
|
||||
REQUIRED_VARS
|
||||
OPENSSL_CRYPTO_LIBRARY
|
||||
|
||||
Reference in New Issue
Block a user