kde-4.14 smokegen: prevent cmake from removing rpath on install

Signed-off-by: Domen Kožar <domen@dev.si>

authored by Karn Kallio and committed by Domen Kožar 3661c7a8 c265aafb

+13 -10
+13 -10
pkgs/desktops/kde-4.14/kdebindings/smokegen-CMakeLists.txt-nix.patch
··· 1 - --- smokegen-4.10.5.orig/CMakeLists.txt 2013-06-28 17:14:50.000000000 +0000 2 - +++ smokegen-4.10.5/CMakeLists.txt 2013-07-31 19:15:17.000000000 +0000 3 - @@ -36,6 +36,10 @@ 4 - set (CMAKE_SKIP_BUILD_RPATH FALSE) 5 - set (CMAKE_SKIP_RPATH FALSE) 6 - 7 +# add the automatically determined parts of the RPATH 8 +# which point to directories outside the build tree to the install RPATH 9 - +SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) 10 - + 11 configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/config.h.in config.h @ONLY ) 12 - 13 - add_executable(smokegen ${generator_SRC})
··· 1 + diff -Naur smokegen-4.14.3-upstream/CMakeLists.txt smokegen-4.14.3/CMakeLists.txt 2 + --- smokegen-4.14.3-upstream/CMakeLists.txt 2014-09-15 13:23:01.000000000 -0430 3 + +++ smokegen-4.14.3/CMakeLists.txt 2015-03-29 16:41:59.295598992 -0430 4 + @@ -32,9 +32,9 @@ 5 + type.cpp 6 + ) 7 + 8 + -# force RPATH so that the binary is usable from within the build tree 9 + -set (CMAKE_SKIP_BUILD_RPATH FALSE) 10 + -set (CMAKE_SKIP_RPATH FALSE) 11 +# add the automatically determined parts of the RPATH 12 +# which point to directories outside the build tree to the install RPATH 13 + +set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) 14 + 15 configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/config.h.in config.h @ONLY ) 16 +