diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-11-28 01:13:12 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-11-28 01:13:12 +0000 |
commit | f2e08766286a15a9e406084ee239309a5c612078 (patch) | |
tree | 3c9136fbcfd3862b061de1981197a92ca4efd193 /modules/TDEMacros.cmake | |
parent | 63852492e08dfd769a1d0b8d950de6100d28c838 (diff) | |
download | tde-cmake-f2e08766286a15a9e406084ee239309a5c612078.tar.gz tde-cmake-f2e08766286a15a9e406084ee239309a5c612078.zip |
[kde-common/cmake/modules] added tde_save / tde_restore macros
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common/cmake@1201527 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r-- | modules/TDEMacros.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 223d9d2..95b8e16 100644 --- a/modules/TDEMacros.cmake +++ b/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() |