adopted OpenMP handling for libZFRelaxation.
This commit is contained in:
parent
a96f1b35d7
commit
9e8f22f629
10
src/external/libZFRelaxation/CMakeLists.txt
vendored
10
src/external/libZFRelaxation/CMakeLists.txt
vendored
@ -53,14 +53,10 @@ target_include_directories(
|
|||||||
)
|
)
|
||||||
|
|
||||||
#--- add library dependencies -------------------------------------------------
|
#--- add library dependencies -------------------------------------------------
|
||||||
if (OpenMP_FOUND)
|
|
||||||
target_compile_options(ZFRelaxation PUBLIC ${OpenMP_CXX_FLAGS})
|
|
||||||
endif (OpenMP_FOUND)
|
|
||||||
|
|
||||||
set(gomp "")
|
set(gomp "")
|
||||||
if (OpenMP_FOUND AND (${CMAKE_HOST_SYSTEM_NAME} STREQUAL Linux))
|
if (OpenMP_FOUND)
|
||||||
set(gomp gomp)
|
set(gomp OpenMP::OpenMP_CXX)
|
||||||
endif (OpenMP_FOUND AND (${CMAKE_HOST_SYSTEM_NAME} STREQUAL Linux))
|
endif (OpenMP_FOUND)
|
||||||
target_link_libraries(ZFRelaxation
|
target_link_libraries(ZFRelaxation
|
||||||
${gomp} FFTW3::FFTW3 ${ROOT_LIBRARIES} PUserFcnBase cuba BMWtools
|
${gomp} FFTW3::FFTW3 ${ROOT_LIBRARIES} PUserFcnBase cuba BMWtools
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user