summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-05-31 14:32:16 (GMT)
committer Slávek Banko <slavek.banko@axis.cz>2015-05-31 14:32:16 (GMT)
commit1d1f9fc4fd93346e85037d4d26e15db25a98030c (patch)
tree1a4500d45c6a3fb598f15cd8e6d078467e0d52bc
parentbeb73fe2399ca6ca9db86fa9dde1015ae4866efa (diff)
downloadcmake-1d1f9fc4.zip
cmake-1d1f9fc4.tar.gz
Fix CMP0011 warning related to CMP0026
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--modules/TDEMacros.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index 49eded3..dcf1f96 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -115,6 +115,7 @@ endif( )
##### because we need the value of the property at configure time.
if( POLICY CMP0026 )
+ cmake_policy( PUSH )
cmake_policy( SET CMP0026 OLD )
endif( POLICY CMP0026 )
@@ -1555,3 +1556,13 @@ macro( tde_setup_architecture_flags )
set( TDE_PIE_LDFLAGS -pie )
endif( HAVE_PIE_SUPPORT )
endmacro( )
+
+
+################################################
+#####
+##### Restore CMP0026 policy
+
+if( POLICY CMP0026 )
+ cmake_policy( POP )
+endif( POLICY CMP0026 )
+