mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-08-06 22:04:07 +00:00
Fix link_to_crypto_dependencies function
This commit is contained in:
parent
609b85b864
commit
668ca7a5d8
@ -105,23 +105,23 @@ endif()
|
|||||||
function(link_to_crypto_dependencies target)
|
function(link_to_crypto_dependencies target)
|
||||||
if(OPENSSL_FOUND)
|
if(OPENSSL_FOUND)
|
||||||
if(TARGET OpenSSL::SSL)
|
if(TARGET OpenSSL::SSL)
|
||||||
target_link_libraries(core_system_parameters
|
target_link_libraries(${target}
|
||||||
PUBLIC
|
PUBLIC
|
||||||
OpenSSL::SSL
|
OpenSSL::SSL
|
||||||
)
|
)
|
||||||
if(TARGET OpenSSL::Crypto)
|
if(TARGET OpenSSL::Crypto)
|
||||||
target_link_libraries(core_system_parameters
|
target_link_libraries(${target}
|
||||||
PUBLIC
|
PUBLIC
|
||||||
OpenSSL::Crypto
|
OpenSSL::Crypto
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
target_link_libraries(core_system_parameters
|
target_link_libraries(${target}
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${OPENSSL_LIBRARIES}
|
${OPENSSL_LIBRARIES}
|
||||||
"${OPENSSL_CRYPTO_LIBRARIES}"
|
"${OPENSSL_CRYPTO_LIBRARIES}"
|
||||||
)
|
)
|
||||||
target_include_directories(core_system_parameters
|
target_include_directories(${target}
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${OPENSSL_INCLUDE_DIR}
|
${OPENSSL_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
@ -137,12 +137,12 @@ function(link_to_crypto_dependencies target)
|
|||||||
else()
|
else()
|
||||||
endif()
|
endif()
|
||||||
else() # GnuTLS
|
else() # GnuTLS
|
||||||
target_link_libraries(core_system_parameters
|
target_link_libraries(${target}
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${GNUTLS_LIBRARIES}
|
${GNUTLS_LIBRARIES}
|
||||||
${GNUTLS_OPENSSL_LIBRARY}
|
${GNUTLS_OPENSSL_LIBRARY}
|
||||||
)
|
)
|
||||||
target_include_directories(core_system_parameters
|
target_include_directories(${target}
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${GNUTLS_INCLUDE_DIR}
|
${GNUTLS_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user