Skip to content

Commit

Permalink
Merge pull request InsightSoftwareConsortium#248 from jhlegarreta/Fix…
Browse files Browse the repository at this point in the history
…ExtractTimestampCMakePolicyWarnings

COMP: Set `CMP0135` CMake policy to `NEW`
  • Loading branch information
thewtex authored Sep 20, 2023
2 parents cf7c2fe + 46b0c71 commit acc31dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ if(NOT CMAKE_CXX_STANDARD OR CMAKE_CXX_STANDARD LESS 17)
set(CMAKE_CXX_STANDARD 17)
endif()

if(POLICY CMP0135)
cmake_policy(SET CMP0135 NEW)
endif()

# To ease enablement with Python packaging
if(DEFINED ENV{ELASTIX_USE_OPENCL})
set(ELASTIX_USE_OPENCL ON CACHE BOOL "Enable OpenCL support in Elastix")
Expand Down

0 comments on commit acc31dc

Please sign in to comment.