Allow packagers set kconfig_compiler install dir
authorMaximiliano Curia <maxy@gnuservers.com.ar>
Thu, 25 Jan 2018 14:02:56 +0000 (11:02 -0300)
committerAurélien COUDERC <coucouf@debian.org>
Sat, 15 Feb 2025 15:57:50 +0000 (16:57 +0100)
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 914b132831f769b8abfb3175dd4043e423799e52..96316b2584c9c7c67478ee7724d03c1ac25fc79b 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})