1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-31 11:19:18 +00:00

Fix link_to_crypto_dependencies function

This commit is contained in:
Carles Fernandez 2024-06-29 11:52:06 +02:00
parent 609b85b864
commit 668ca7a5d8
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -105,23 +105,23 @@ endif()
function(link_to_crypto_dependencies target)
if(OPENSSL_FOUND)
if(TARGET OpenSSL::SSL)
target_link_libraries(core_system_parameters
target_link_libraries(${target}
PUBLIC
OpenSSL::SSL
)
if(TARGET OpenSSL::Crypto)
target_link_libraries(core_system_parameters
target_link_libraries(${target}
PUBLIC
OpenSSL::Crypto
)
endif()
else()
target_link_libraries(core_system_parameters
target_link_libraries(${target}
PUBLIC
${OPENSSL_LIBRARIES}
"${OPENSSL_CRYPTO_LIBRARIES}"
)
target_include_directories(core_system_parameters
target_include_directories(${target}
PUBLIC
${OPENSSL_INCLUDE_DIR}
)
@ -137,12 +137,12 @@ function(link_to_crypto_dependencies target)
else()
endif()
else() # GnuTLS
target_link_libraries(core_system_parameters
target_link_libraries(${target}
PUBLIC
${GNUTLS_LIBRARIES}
${GNUTLS_OPENSSL_LIBRARY}
)
target_include_directories(core_system_parameters
target_include_directories(${target}
PUBLIC
${GNUTLS_INCLUDE_DIR}
)