cmake: ensure consumers do not overwrite the required policy
authorSergiu Deitsch <sergiu.deitsch@gmail.com>
Tue, 2 Jan 2018 22:36:51 +0000 (23:36 +0100)
committerSergiu Deitsch <sergiu.deitsch@gmail.com>
Tue, 2 Jan 2018 22:36:51 +0000 (23:36 +0100)
glog-config.cmake.in

index e3c44ae45e9fd8e6e92611f20b58b738c2327e8f..bf06a62764c410a98172b1c4143e311f030c7c74 100644 (file)
@@ -1,3 +1,6 @@
+cmake_policy (PUSH)
+cmake_policy (VERSION 3.0)
+
 @PACKAGE_INIT@
 
 include (CMakeFindDependencyMacro)
@@ -5,3 +8,5 @@ include (CMakeFindDependencyMacro)
 @gflags_DEPENDENCY@
 
 include ("${CMAKE_CURRENT_LIST_DIR}/glog-targets.cmake")
+
+cmake_policy (POP)