Skip to content

Commit

Permalink
Guard policy for more recent cmake versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jun 7, 2019
1 parent 047fbd7 commit 0f5a56e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/policies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
if (CMAKE_MAJOR_VERSION GREATER 2)
cmake_policy(SET CMP0022 NEW) # interface link libraries
cmake_policy(SET CMP0042 NEW) # osx rpath
cmake_policy(SET CMP0075 NEW) # Mystical setting to eliminate warning
if (CMAKE_MAJOR_VERSION GREATER 3 AND
CMAKE_MINOR_VERSION GREATER 12)
cmake_policy(SET CMP0075 NEW) # Mystical setting to eliminate warning
endif()
endif()

0 comments on commit 0f5a56e

Please sign in to comment.