Skip to content

Commit

Permalink
Merge pull request #325 from tbaudier/cmake_backward_compatibility
Browse files Browse the repository at this point in the history
CMP0072 policy was introduced with CMake v3.11
  • Loading branch information
dsarrut authored Mar 23, 2020
2 parents 305dbca + 01a13d8 commit f8138b0
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 @@ -2,7 +2,9 @@
CMAKE_MINIMUM_REQUIRED(VERSION 3.0 FATAL_ERROR)
CMAKE_POLICY(SET CMP0012 NEW)
CMAKE_POLICY(SET CMP0025 NEW)
CMAKE_POLICY(SET CMP0072 NEW)
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.11.0")
CMAKE_POLICY(SET CMP0072 NEW)
endif()

#=========================================================
PROJECT(Gate)
Expand Down

0 comments on commit f8138b0

Please sign in to comment.