mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-04-09 12:16:46 +00:00
Force use of OpenSSL library
This commit is contained in:
parent
4a13e446b6
commit
816c20b77b
@ -2173,7 +2173,8 @@ find_library(GNUTLS_OPENSSL_LIBRARY
|
||||
/usr/local/lib64
|
||||
/opt/local/lib
|
||||
)
|
||||
if(NOT GNUTLS_OPENSSL_LIBRARY)
|
||||
#if(NOT GNUTLS_OPENSSL_LIBRARY)
|
||||
if(GNUTLS_OPENSSL_LIBRARY)
|
||||
if(GnuTLS_FOUND)
|
||||
message(STATUS " But it was not built with openssl compatibility.")
|
||||
endif()
|
||||
@ -2188,6 +2189,7 @@ if(NOT GNUTLS_OPENSSL_LIBRARY)
|
||||
PURPOSE "Used for the SUPL protocol implementation."
|
||||
TYPE REQUIRED
|
||||
)
|
||||
message("OPENSSL_FOUND: " ${OPENSSL_FOUND})
|
||||
if(OPENSSL_FOUND)
|
||||
set_package_properties(GnuTLS PROPERTIES
|
||||
PURPOSE "Not found, but OpenSSL can replace it."
|
||||
|
@ -134,6 +134,7 @@ target_include_directories(core_system_parameters
|
||||
)
|
||||
|
||||
if(OPENSSL_FOUND)
|
||||
message("OPENSSL_FOUND: " ${OPENSSL_FOUND})
|
||||
if(TARGET OpenSSL::SSL)
|
||||
target_link_libraries(core_system_parameters
|
||||
PUBLIC
|
||||
@ -150,10 +151,14 @@ if(OPENSSL_FOUND)
|
||||
)
|
||||
endif()
|
||||
if(OPENSSL_VERSION)
|
||||
message("OPENSSL_VERSION: " ${OPENSSL_VERSION})
|
||||
if(OPENSSL_VERSION VERSION_GREATER "3.0.0")
|
||||
target_compile_definitions(core_system_parameters PUBLIC -DUSE_OPENSSL_3=1)
|
||||
target_compile_definitions(core_system_parameters PUBLIC -DUSE_OPENSSL_FALLBACK=1 -DUSE_OPENSSL_3=1)
|
||||
message("USE_OPENSSL_3: " ${DUSE_OPENSSL_3})
|
||||
message("USE_OPENSSL_FALLBACK:" ${USE_OPENSSL_FALLBACK})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
else()
|
||||
target_link_libraries(core_system_parameters
|
||||
PUBLIC
|
||||
|
Loading…
x
Reference in New Issue
Block a user