[TDEMacros.cmake] added tde_save_and_set() macro

(cherry picked from commit caedf8323c)
v3.5.13-sru
Serghei Amelian 13 years ago committed by Slávek Banko
parent 43ef41ffd6
commit 25ca6f7a38

@ -1,8 +1,11 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# (C) 2010-2012 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# (C) 2011-2012 Timothy Pearson
# kb9vqf (AT) pearsoncomputing.net
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
@ -1205,6 +1208,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}} )

Loading…
Cancel
Save