Allow packagers set kconfig_compiler install dir
authorMaximiliano Curia <maxy@gnuservers.com.ar>
Thu, 25 Jan 2018 14:02:56 +0000 (11:02 -0300)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 5 Sep 2024 03:49:41 +0000 (03:49 +0000)
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

CMakeLists.txt
src/kconfig_compiler/CMakeLists.txt

index 605ed4a30874a48bd6f6ac71512901f37f82d6f6..adf04b6ab879bb8f19f3aa3e28ac954e044656ab 100644 (file)
@@ -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")
index e9cadf7af09caa8d2eb79cd03f7703fb86ff429c..a07f26804d39af0f3a1587d2aa32a1fc9976228c 100644 (file)
@@ -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})