1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
From: Maximiliano Curia <maxy@gnuservers.com.ar>
Date: Thu, 25 Jan 2018 11:02:56 -0300
Subject: Allow packagers set kconfig_compiler install dir
Origin: Debian
Bug-Debian: https://bugs.debian.org/887452
Last-Update: 2018-01-25
---
CMakeLists.txt | 3 +++
src/kconfig_compiler/CMakeLists.txt | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -73,6 +73,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}/KF5Config")
--- a/src/kconfig_compiler/CMakeLists.txt
+++ b/src/kconfig_compiler/CMakeLists.txt
@@ -25,4 +25,4 @@ target_link_libraries(kconfig_compiler Q
ecm_mark_nongui_executable(kconfig_compiler)
-install(TARGETS kconfig_compiler EXPORT KF5ConfigCompilerTargets DESTINATION ${KDE_INSTALL_LIBEXECDIR_KF})
+install(TARGETS kconfig_compiler EXPORT KF5ConfigCompilerTargets DESTINATION ${KCONFIG_COMPILER_INSTALL_DIR})
|