From: Maximiliano Curia Date: Thu, 25 Jan 2018 14:02:56 +0000 (-0300) Subject: Allow packagers set kconfig_compiler install dir X-Git-Tag: archive/raspbian/6.6.0-1+rpi1~1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=22eaf231c1e4b88cbd4f40ed9e60655ac4c075ec;p=kf6-kconfig.git Allow packagers set kconfig_compiler install dir Origin: Debian Bug-Debian: https://bugs.debian.org/887452 Last-Update: 2018-01-25 Gbp-Pq: Name Allow-packagers-set-kconfig_compiler-install-dir.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 605ed4a..adf04b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,6 +74,9 @@ endif() include (ECMPoQmTools) ecm_install_po_files_as_qm(poqm) +# allow kconfig_compiler install dir to be set as a configure argument +set(KCONFIG_COMPILER_INSTALL_DIR "${KDE_INSTALL_LIBEXECDIR_KF}" CACHE STRING + "Set directory for kconfig compiler tool") # create a Config.cmake and a ConfigVersion.cmake file and install them set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF6Config") diff --git a/src/kconfig_compiler/CMakeLists.txt b/src/kconfig_compiler/CMakeLists.txt index e9cadf7..a07f268 100644 --- a/src/kconfig_compiler/CMakeLists.txt +++ b/src/kconfig_compiler/CMakeLists.txt @@ -25,4 +25,4 @@ target_link_libraries(kconfig_compiler Qt6::Xml) ecm_mark_nongui_executable(kconfig_compiler) -install(TARGETS kconfig_compiler EXPORT KF6ConfigCompilerTargets DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF}) +install(TARGETS kconfig_compiler EXPORT KF6ConfigCompilerTargets DESTINATION ${KCONFIG_COMPILER_INSTALL_DIR})