[TDEMacros.cmake] added tde_save_and_set() macro

pull/1/head
Serghei Amelian 13 years ago
parent 11b41ecbbc
commit caedf8323c

@ -1,6 +1,6 @@
################################################# #################################################
# #
# (C) 2010-2011 Serghei Amelian # (C) 2010-2012 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com # serghei (DOT) amelian (AT) gmail.com
# #
# (C) 2011-2012 Timothy Pearson # (C) 2011-2012 Timothy Pearson
@ -1283,6 +1283,11 @@ macro( tde_save )
endforeach() endforeach()
endmacro() endmacro()
macro( tde_save_and_set _var )
set( __bak_${_var} ${${_var}} )
set( ${_var} ${ARGN} )
endmacro( )
macro( tde_restore ) macro( tde_restore )
foreach( _var ${ARGN} ) foreach( _var ${ARGN} )
set( ${_var} ${__bak_${_var}} ) set( ${_var} ${__bak_${_var}} )

Loading…
Cancel
Save