Skip to content

Commit

Permalink
CMake policy: escape preproc defs automatically
Browse files Browse the repository at this point in the history
Fix bddb8d4 with CMake >= v3.0.2.
  • Loading branch information
dberzano committed Feb 11, 2016
1 parent bddb8d4 commit 0e52dc3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,11 @@ if (excleve GREATER -1)
set(ROOT_VERSION_MIN_5 "5.34.17")
endif()

### CMP0025 Compiler id for Apple Clang is now AppleClang.
### CMP0042 MACOSX_RPATH is enabled by default.

foreach(p
CMP0025 # CMake 3.0
CMP0042 # CMake 3.0
)
foreach(p CMP0005 # Properly escape preprocessor definitions (v2.6, v3.0.2)
CMP0025 # Compiler id for Apple Clang is now AppleClang (v3.0)
CMP0042) # MACOSX_RPATH is enabled by default (v3.0)
if(POLICY ${p})
cmake_policy(SET ${p} NEW)
cmake_policy(SET ${p} NEW)
endif()
endforeach()

Expand Down

0 comments on commit 0e52dc3

Please sign in to comment.