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
|
# optional SSL library
|
||||||
if (USE_SSL)
|
if (USE_SSL)
|
||||||
add_compile_definitions(HAVE_SSL)
|
add_compile_definitions(HAVE_SSL)
|
||||||
find_package(OPENSSL REQUIRED)
|
find_package(OpenSSL REQUIRED)
|
||||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||||
endif (USE_SSL)
|
endif (USE_SSL)
|
||||||
|
|
||||||
|
|||||||
@ -409,7 +409,6 @@ foreach(_comp IN LISTS OpenSSL_FIND_COMPONENTS)
|
|||||||
endforeach()
|
endforeach()
|
||||||
unset(_comp)
|
unset(_comp)
|
||||||
|
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
|
||||||
find_package_handle_standard_args(OpenSSL
|
find_package_handle_standard_args(OpenSSL
|
||||||
REQUIRED_VARS
|
REQUIRED_VARS
|
||||||
OPENSSL_CRYPTO_LIBRARY
|
OPENSSL_CRYPTO_LIBRARY
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user