diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-05-31 16:32:16 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-05-31 16:32:16 +0200 |
commit | 1d1f9fc4fd93346e85037d4d26e15db25a98030c (patch) | |
tree | 1a4500d45c6a3fb598f15cd8e6d078467e0d52bc | |
parent | beb73fe2399ca6ca9db86fa9dde1015ae4866efa (diff) | |
download | tde-cmake-1d1f9fc4fd93346e85037d4d26e15db25a98030c.tar.gz tde-cmake-1d1f9fc4fd93346e85037d4d26e15db25a98030c.zip |
Fix CMP0011 warning related to CMP0026
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | modules/TDEMacros.cmake | 11 |
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 ) + |