From a26e3caf952e4ffaa1829a1b8b3e56da2a419fa2 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sun, 10 Dec 2006 22:32:50 +0000 Subject: -add option KDE4_USE_ALWAYS_FULL_RPATH (disabled by default): if enabled, everything (also libs and plugins) will be linked with full RPATH Alex svn path=/trunk/KDE/kdelibs/; revision=612333 --- modules/KDE4Macros.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/KDE4Macros.cmake') diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake index 1e3f75cf..b65c9568 100644 --- a/modules/KDE4Macros.cmake +++ b/modules/KDE4Macros.cmake @@ -409,9 +409,9 @@ endmacro (KDE4_CREATE_FINAL_FILES) # If RPATH is not explicitely disabled, libraries and plugins are built without RPATH, in # the hope that the RPATH which is compiled into the executable is good enough. macro (KDE4_HANDLE_RPATH_FOR_LIBRARY _target_NAME) - if (NOT CMAKE_SKIP_RPATH) + if (NOT CMAKE_SKIP_RPATH AND NOT KDE4_USE_ALWAYS_FULL_RPATH) set_target_properties(${_target_NAME} PROPERTIES INSTALL_RPATH_USE_LINK_PATH FALSE SKIP_BUILD_RPATH TRUE BUILD_WITH_INSTALL_RPATH TRUE INSTALL_RPATH "") - endif (NOT CMAKE_SKIP_RPATH) + endif (NOT CMAKE_SKIP_RPATH AND NOT KDE4_USE_ALWAYS_FULL_RPATH) endmacro (KDE4_HANDLE_RPATH_FOR_LIBRARY) # This macro sets the RPATH related options for executables -- cgit v1.2.1