From e485f450201ef79bd64e34d6345454a5075fd227 Mon Sep 17 00:00:00 2001 From: samelian Date: Wed, 23 Mar 2011 15:03:56 +0000 Subject: [PATCH] [kde-common/cmake] TDEMacros.cmake: added tde_setup_install_path() git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common@1225817 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- cmake/modules/TDEMacros.cmake | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/cmake/modules/TDEMacros.cmake b/cmake/modules/TDEMacros.cmake index acca9d5..2c57114 100644 --- a/cmake/modules/TDEMacros.cmake +++ b/cmake/modules/TDEMacros.cmake @@ -1001,7 +1001,7 @@ macro( tde_create_handbook ) ${CMAKE_CURRENT_BINARY_DIR}/index.cache.bz2 ${_srcs} ${_extra} DESTINATION ${_dest} ) - tde_install_symlink( ${HTML_INSTALL_DIR}/${_lang}/common ${_dest} ) + tde_install_symlink( ${TDE_HTML_DIR}/${_lang}/common ${_dest} ) endmacro( ) @@ -1103,3 +1103,16 @@ macro( tde_restore ) unset( __bak_${_var} ) endforeach() endmacro() + + +################################################# +##### +##### tde_setup_install_path + +macro( tde_setup_install_path _path _default ) + if( DEFINED ${_path} ) + set( ${_path} "${${_path}}" CACHE INTERNAL "" FORCE ) + else( ) + set( ${_path} "${_default}" ) + endif( ) +endmacro( )