summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-11-28 01:13:12 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-11-28 01:13:12 +0000
commit447692aab463c986346e30fab506e5e141861bb7 (patch)
treedf2b147705a1a0e17079e1a24aa2dfe213a23750 /cmake
parent242a64afc8285a24e9041a05975c770436d8bc21 (diff)
downloadother-447692aab463c986346e30fab506e5e141861bb7.tar.gz
other-447692aab463c986346e30fab506e5e141861bb7.zip
[kde-common/cmake/modules] added tde_save / tde_restore macros
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common@1201527 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/TDEMacros.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/cmake/modules/TDEMacros.cmake b/cmake/modules/TDEMacros.cmake
index 223d9d2..95b8e16 100644
--- a/cmake/modules/TDEMacros.cmake
+++ b/cmake/modules/TDEMacros.cmake
@@ -831,3 +831,21 @@ macro( tde_conditional_add_subdirectory _cond _path )
endif( ${_cond} )
endmacro( tde_conditional_add_subdirectory )
+
+
+#################################################
+#####
+##### tde_save / tde_restore
+
+macro( tde_save )
+ foreach( _var ${ARGN} )
+ set( __bak_${_var} ${${_var}} )
+ endforeach()
+endmacro()
+
+macro( tde_restore )
+ foreach( _var ${ARGN} )
+ set( ${_var} ${__bak_${_var}} )
+ unset( __bak_${_var} )
+ endforeach()
+endmacro()