Skip to content

Commit

Permalink
Add include_directories for OpenMP
Browse files Browse the repository at this point in the history
This is needed on systems (such as clang on MacOS) that use non-standard locations of `omp.h`.

Fixes #109
  • Loading branch information
KrisThielemans authored Mar 4, 2024
1 parent 6db8b16 commit 36ab47d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ 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}")
include_directories("${OpenMP_CXX_INCLUDE_DIRS}")
include_directories("${OpenMP_C_INCLUDE_DIRS}")
endif(NOT OPENMP_FOUND)
endif(USE_OPENMP)
#-----------------------------------------------------------------------------
Expand Down Expand Up @@ -226,4 +228,4 @@ if(DOXYGEN_FOUND)
)
message(STATUS "Found doxygen")
endif(DOXYGEN_FOUND)
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------

0 comments on commit 36ab47d

Please sign in to comment.