summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/TDEMacros.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index 0ff4c17..56c9f7f 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -67,6 +67,7 @@ endif()
#####
##### set necessary CMake policies
+cmake_policy( PUSH )
if( POLICY CMP0057 )
# necessary for CheckLinkerFlag
cmake_policy( SET CMP0057 NEW )
@@ -224,9 +225,15 @@ macro( tde_read_src_metadata )
endmacro( tde_read_src_metadata )
+################################################
+#####
+##### finalization as a slave part
+
if( DEFINED MASTER_SOURCE_DIR )
+ cmake_policy( POP )
return( )
endif( )
+
########### slave part ends here ###############
@@ -3217,3 +3224,13 @@ macro( tde_setup_polkit )
endif( )
endmacro( )
+
+
+#################################################
+#####
+##### restore CMake policies
+
+cmake_policy( POP )
+
+
+#################################################