Skip to content
Snippets Groups Projects
Commit e13b5fa5 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Export OpenSSL dependency

parent 652eb281
No related branches found
No related tags found
1 merge request!136Add selection mechanism in graph
Pipeline #65956 failed
......@@ -120,8 +120,10 @@ target_include_directories(${module_name}
${CMAKE_CURRENT_SOURCE_DIR}/src
)
set(AIDGE_REQUIRES_OPENSSL FALSE)
if(OpenSSL_FOUND)
target_link_libraries(${module_name} PRIVATE OpenSSL::SSL OpenSSL::Crypto)
set(AIDGE_REQUIRES_OPENSSL TRUE)
endif()
target_compile_features(${module_name} PRIVATE cxx_std_14)
......
......@@ -2,6 +2,10 @@
include(CMakeFindDependencyMacro)
find_dependency(aidge_core)
set(AIDGE_REQUIRES_OPENSSL @AIDGE_REQUIRES_OPENSSL@)
if (AIDGE_REQUIRES_OPENSSL)
find_dependency(OpenSSL)
endif()
include(CMakeFindDependencyMacro)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment