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

Fixed compilation of other modules

parent c1849ef2
No related branches found
No related tags found
2 merge requests!166Update 0.5.0 -> 0.6.0,!158Added OpenMP
Pipeline #70393 failed
...@@ -89,7 +89,8 @@ target_link_libraries(${module_name} ...@@ -89,7 +89,8 @@ target_link_libraries(${module_name}
) )
if(OpenMP_CXX_FOUND) if(OpenMP_CXX_FOUND)
target_link_libraries(${module_name} PUBLIC OpenMP::OpenMP_CXX) target_link_libraries(${module_name} PRIVATE OpenMP::OpenMP_CXX)
set(AIDGE_REQUIRES_OPENMP TRUE)
endif() endif()
# Add definition _USE_MATH_DEFINES to enable math constant definitions from math.h/cmath. # Add definition _USE_MATH_DEFINES to enable math constant definitions from math.h/cmath.
......
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
include(CMakeFindDependencyMacro) include(CMakeFindDependencyMacro)
find_dependency(aidge_core) find_dependency(aidge_core)
set(AIDGE_REQUIRES_OPENMP @AIDGE_REQUIRES_OPENMP@)
if (AIDGE_REQUIRES_OPENMP)
find_dependency(OpenMP)
endif()
set(AIDGE_REQUIRES_OPENSSL @AIDGE_REQUIRES_OPENSSL@) set(AIDGE_REQUIRES_OPENSSL @AIDGE_REQUIRES_OPENSSL@)
if (AIDGE_REQUIRES_OPENSSL) if (AIDGE_REQUIRES_OPENSSL)
find_dependency(OpenSSL) find_dependency(OpenSSL)
......
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