From f680bce0a7819abd043c87e22eed92e2a9f8769d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Onur=20=C3=9Clgen?= Date: Fri, 8 Mar 2024 15:09:04 +0000 Subject: [PATCH] Add include directories for OpenMP --- CMakeLists.txt | 6 ++++++ niftyreg_build_version.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 72ee7d5a..a7d5e6c7 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -182,6 +182,12 @@ if(USE_OPENMP) message(STATUS "Found OpenMP") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") + if (OpenMP_C_INCLUDE_DIRS) + include_directories(${OpenMP_C_INCLUDE_DIRS}) + endif(OpenMP_C_INCLUDE_DIRS) + if (OpenMP_CXX_INCLUDE_DIRS) + include_directories(${OpenMP_CXX_INCLUDE_DIRS}) + endif(OpenMP_CXX_INCLUDE_DIRS) endif(NOT OPENMP_FOUND) endif(USE_OPENMP) #----------------------------------------------------------------------------- diff --git a/niftyreg_build_version.txt b/niftyreg_build_version.txt index 1bb7ac53..8d73f938 100644 --- a/niftyreg_build_version.txt +++ b/niftyreg_build_version.txt @@ -1 +1 @@ -421 +422