From b8e4e8d89432cfaa860835d873b52e4df40d92d5 Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Sun, 18 Feb 2018 20:39:13 +0000 Subject: added linker flags as CXX flags for openmp on linux --- Core/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/CMakeLists.txt b/Core/CMakeLists.txt index 14b0594..3202581 100644 --- a/Core/CMakeLists.txt +++ b/Core/CMakeLists.txt @@ -38,7 +38,7 @@ find_package(OpenMP) if (OPENMP_FOUND) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") - set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}") + set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS} ${OpenMP_CXX_FLAGS}") endif() ## Build the regularizers package as a library -- cgit v1.2.3