summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-05-31 16:32:16 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-05-31 18:10:37 +0200
commite708fab736117ddf36d0d02fee9927970863fb0c (patch)
tree1a4500d45c6a3fb598f15cd8e6d078467e0d52bc
parenta4263ae0e1af09ddda4d18f9dacb8c72761a9304 (diff)
downloadcmake-e708fab736117ddf36d0d02fee9927970863fb0c.tar.gz
cmake-e708fab736117ddf36d0d02fee9927970863fb0c.zip
Fix CMP0011 warning related to CMP0026
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 1d1f9fc4fd93346e85037d4d26e15db25a98030c)
-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 )
+