Browse Source

Fixed link with OpenMP

interpolate
Michael Uleysky 2 years ago
parent
commit
43f8d6d6c5
  1. 1
      CMakeLists.txt

1
CMakeLists.txt

@ -39,6 +39,7 @@ endif()
CHECK_CXX_COMPILER_FLAG(-fopenmp COMPILER_SUPPORTS_OPENMP) CHECK_CXX_COMPILER_FLAG(-fopenmp COMPILER_SUPPORTS_OPENMP)
if(COMPILER_SUPPORTS_OPENMP) if(COMPILER_SUPPORTS_OPENMP)
set(default_options ${default_options} -fopenmp) set(default_options ${default_options} -fopenmp)
set(linker_options ${linker_options} -fopenmp)
else() else()
message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no OpenMP support. Please use a different C++ compiler.") message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no OpenMP support. Please use a different C++ compiler.")
endif() endif()

Loading…
Cancel
Save