diff options
author | Serghei Amelian <serghei.amelian@gmail.com> | 2012-02-12 23:08:53 +0200 |
---|---|---|
committer | Serghei Amelian <serghei.amelian@gmail.com> | 2012-02-12 23:08:53 +0200 |
commit | caedf8323c45b376c824de343f31de78664b2511 (patch) | |
tree | b2989e70f397252a5b2a8c093d100bc44fe18c64 /modules/TDEMacros.cmake | |
parent | 11b41ecbbc6819eac4cd7bc9ccd5419e150a5a28 (diff) | |
download | tde-cmake-caedf8323c45b376c824de343f31de78664b2511.tar.gz tde-cmake-caedf8323c45b376c824de343f31de78664b2511.zip |
[TDEMacros.cmake] added tde_save_and_set() macro
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r-- | modules/TDEMacros.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 075b7eb..1091755 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -1,6 +1,6 @@ ################################################# # -# (C) 2010-2011 Serghei Amelian +# (C) 2010-2012 Serghei Amelian # serghei (DOT) amelian (AT) gmail.com # # (C) 2011-2012 Timothy Pearson @@ -1283,6 +1283,11 @@ macro( tde_save ) endforeach() endmacro() +macro( tde_save_and_set _var ) + set( __bak_${_var} ${${_var}} ) + set( ${_var} ${ARGN} ) +endmacro( ) + macro( tde_restore ) foreach( _var ${ARGN} ) set( ${_var} ${__bak_${_var}} ) |