adopted OpenMP handling for libZFRelaxation.

This commit is contained in:
2024-09-25 09:47:28 +02:00
parent a96f1b35d7
commit 9e8f22f629
+3 -7
View File
@@ -53,14 +53,10 @@ target_include_directories(
)
#--- add library dependencies -------------------------------------------------
if (OpenMP_FOUND)
target_compile_options(ZFRelaxation PUBLIC ${OpenMP_CXX_FLAGS})
endif (OpenMP_FOUND)
set(gomp "")
if (OpenMP_FOUND AND (${CMAKE_HOST_SYSTEM_NAME} STREQUAL Linux))
set(gomp gomp)
endif (OpenMP_FOUND AND (${CMAKE_HOST_SYSTEM_NAME} STREQUAL Linux))
if (OpenMP_FOUND)
set(gomp OpenMP::OpenMP_CXX)
endif (OpenMP_FOUND)
target_link_libraries(ZFRelaxation
${gomp} FFTW3::FFTW3 ${ROOT_LIBRARIES} PUserFcnBase cuba BMWtools
)