mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed issues with OpenSSL library finding
This commit is contained in:
parent
325e0fd243
commit
2edfb2f592
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user