diff options
author | dkazanc <dkazanc@hotmail.com> | 2019-12-02 10:23:41 +0000 |
---|---|---|
committer | dkazanc <dkazanc@hotmail.com> | 2019-12-02 10:23:41 +0000 |
commit | 981445657f9e7041e3d954148146f21af61cf59f (patch) | |
tree | e2dfab4cb5f80c4532b6ea7ca5139536bc7a77ed /src | |
parent | c65291e6b987283e4767a8ad2bd2d2433ca3782e (diff) | |
download | regularization-981445657f9e7041e3d954148146f21af61cf59f.tar.gz regularization-981445657f9e7041e3d954148146f21af61cf59f.tar.bz2 regularization-981445657f9e7041e3d954148146f21af61cf59f.tar.xz regularization-981445657f9e7041e3d954148146f21af61cf59f.zip |
cmake modif
Diffstat (limited to 'src')
-rw-r--r-- | src/Core/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Core/CMakeLists.txt b/src/Core/CMakeLists.txt index 07aae3c..4e43b5e 100644 --- a/src/Core/CMakeLists.txt +++ b/src/Core/CMakeLists.txt @@ -15,6 +15,15 @@ message("CIL_VERSION ${CIL_VERSION}") ## Build the regularisers package as a library message("Creating Regularisers as a shared library") +find_package(OpenMP REQUIRED) +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() + message("CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}") message("CMAKE_C_FLAGS ${CMAKE_C_FLAGS}") message("CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS}") |