Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit a661f58d authored by gsell's avatar gsell
Browse files

set '-fopenmp' as compile option too

parent f5e1d895
No related branches found
No related tags found
1 merge request!331Resolve "Link error if OpenMP is enabled"
......@@ -63,6 +63,7 @@ if ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel" )
add_compile_options ("-diag-disable 383")
add_compile_options ("-diag-disable 981")
if (ENABLE_OpenMP)
add_compile_options (-openmp)
add_link_options (-openmp)
endif ()
......@@ -77,6 +78,7 @@ elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
# Allow overloaded virtual functions (instances to be fixed in OPAL)
#add_compile_options (-Wno-overloaded-virtual)
if (ENABLE_OpenMP)
add_compile_options (-fopenmp)
add_link_options (-fopenmp)
endif ()
# Not 100% clear why we need this. But without we get warning while
......@@ -90,6 +92,7 @@ elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
# Warning flags
if (ENABLE_OpenMP)
add_compile_options (-fopenmp)
add_link_options (-fopenmp)
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