[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
pull/1/head
samelian 14 years ago
parent 63852492e0
commit f2e0876628

@ -831,3 +831,21 @@ macro( tde_conditional_add_subdirectory _cond _path )
endif( ${_cond} ) endif( ${_cond} )
endmacro( tde_conditional_add_subdirectory ) 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