Skip to content

Commit

Permalink
cmake: Update rules to use custom OpenMP module
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Oct 30, 2024
1 parent 05a85a2 commit 0d483da
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,15 @@ include(${JRL_CMAKE_MODULES}/ide.cmake)
include(${JRL_CMAKE_MODULES}/python.cmake)
include(${JRL_CMAKE_MODULES}/apple.cmake)
if(APPLE) # Use the handmade approach
set(
CMAKE_MODULE_PATH
${JRL_CMAKE_MODULES}/find-external/OpenMP
${CMAKE_MODULE_PATH}
)
if(${CMAKE_VERSION} VERSION_LESS "3.18.0") # Need to find the right version
set(
CMAKE_MODULE_PATH
${JRL_CMAKE_MODULES}/find-external/OpenMP
${CMAKE_MODULE_PATH}
)
endif()
elseif(UNIX)
if(
${CMAKE_VERSION} VERSION_GREATER "3.20.0"
OR ${CMAKE_VERSION} VERSION_EQUAL "3.20.0"
)
if(${CMAKE_VERSION} VERSION_EQUAL "3.20.0")
set(
CMAKE_MODULE_PATH
${JRL_CMAKE_MODULES}/find-external/OpenMP
Expand Down

0 comments on commit 0d483da

Please sign in to comment.