From 43f8d6d6c516289a6f655bb3574ec1de9f856b05 Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Wed, 22 Mar 2023 13:33:07 +1000 Subject: [PATCH] Fixed link with OpenMP --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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()