[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
master
samelian 14 years ago
parent 242a64afc8
commit 447692aab4

@ -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()

Loading…
Cancel
Save