diff --git a/CMakeLists.txt b/CMakeLists.txt index c3753d0..5067085 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,7 @@ endif() CHECK_CXX_COMPILER_FLAG(-fopenmp COMPILER_SUPPORTS_OPENMP) if(COMPILER_SUPPORTS_OPENMP) set(default_options ${default_options} -fopenmp) + set(linker_options ${linker_options} -fopenmp) else() message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no OpenMP support. Please use a different C++ compiler.") endif()