Skip to content
Snippets Groups Projects
Commit 9e89b0de authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing OpenMP

parent 1256bdbd
No related branches found
No related tags found
No related merge requests found
Pipeline #3985 failed
......@@ -195,7 +195,11 @@ else()
endif()
if (OPENMP_FOUND)
file(WRITE openmp_flags "${OpenMP_CXX_FLAGS} -I${OpenMP_CXX_INCLUDE_DIRS}")
if (NOT CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES STREQUAL "")
file(WRITE openmp_flags "${OpenMP_CXX_FLAGS} -I${OpenMP_CXX_INCLUDE_DIRS}")
else()
file(WRITE openmp_flags "${OpenMP_CXX_FLAGS}")
endif()
file(WRITE openmp_libs ${OpenMP_CXX_LIBRARIES})
endif()
......
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