summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralgol <dkazanc@hotmail.com>2018-08-10 15:05:50 +0100
committeralgol <dkazanc@hotmail.com>2018-08-10 15:05:50 +0100
commit7d5b8c2047faf0f260c838a88f8becf5ee7077dc (patch)
treed60efc66d324f4825c65cbb82e265fe06e7e5bc6
parentff5cb4f35609b0b02698978fb8210dc7d09f0190 (diff)
downloadregularization-7d5b8c2047faf0f260c838a88f8becf5ee7077dc.tar.gz
regularization-7d5b8c2047faf0f260c838a88f8becf5ee7077dc.tar.bz2
regularization-7d5b8c2047faf0f260c838a88f8becf5ee7077dc.tar.xz
regularization-7d5b8c2047faf0f260c838a88f8becf5ee7077dc.zip
add link flags
-rw-r--r--Core/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/Core/CMakeLists.txt b/Core/CMakeLists.txt
index 5df55f1..9ee6c7a 100644
--- a/Core/CMakeLists.txt
+++ b/Core/CMakeLists.txt
@@ -18,12 +18,19 @@ 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} ${OpenMP_CXX_FLAGS}")
+ set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_SHARED_LINKER_FLAGS} ${OpenMP_CXX_FLAGS}")
+ set (CMAKE_STATIC_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_STATIC_LINKER_FLAGS} ${OpenMP_CXX_FLAGS}")
+
endif()
## Build the regularisers package as a library
message("Creating Regularisers as a shared library")
message("CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}")
+message("CMAKE_C_FLAGS ${CMAKE_C_FLAGS}")
+message("CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS}")
+message("CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS}")
+message("CMAKE_STATIC_LINKER_FLAGS ${CMAKE_STATIC_LINKER_FLAGS}")
set(CMAKE_BUILD_TYPE "Release")
@@ -127,4 +134,4 @@ if (BUILD_CUDA)
else()
message("CUDA NOT FOUND")
endif()
-endif() \ No newline at end of file
+endif()