1010e3
From b0a68ca075928aa29ee1e0007bfb14d714f5a948 Mon Sep 17 00:00:00 2001
1010e3
From: Ralf Habacker <ralf.habacker@freenet.de>
1010e3
Date: Thu, 10 Aug 2017 13:45:04 +0200
1010e3
Subject: [PATCH 315/315] Fix 'Compile error on Fedora 26'
1010e3
1010e3
CMake build system used some outdated variables which has been replaced
1010e3
by cmake build in variables to fix the issue.
1010e3
1010e3
FIXED-IN:4.8.1
1010e3
BUG:383351
1010e3
---
1010e3
 kmymoney/dialogs/settings/CMakeLists.txt | 9 ++++-----
1010e3
 1 file changed, 4 insertions(+), 5 deletions(-)
1010e3
1010e3
diff --git a/kmymoney/dialogs/settings/CMakeLists.txt b/kmymoney/dialogs/settings/CMakeLists.txt
1010e3
index 5aacbea7..b007dfb9 100644
1010e3
--- a/kmymoney/dialogs/settings/CMakeLists.txt
1010e3
+++ b/kmymoney/dialogs/settings/CMakeLists.txt
1010e3
@@ -1,12 +1,11 @@
1010e3
 add_custom_command(
1010e3
-  OUTPUT ${KMyMoney2_BINARY_DIR}/kmymoneysettings.h  ${KMyMoney2_BINARY_DIR}/kmymoneysettings.cpp
1010e3
-  DEPENDS ${KMyMoney2_SOURCE_DIR}/kmymoney.kcfg ${KMyMoney2_SOURCE_DIR}/kmymoneysettings.kcfgc
1010e3
-  COMMAND ${KDE4_KCFGC_EXECUTABLE} -d ${KMyMoney2_BINARY_DIR}/ ${KMyMoney2_SOURCE_DIR}/kmymoney.kcfg ${KMyMoney2_SOURCE_DIR}/kmymoneysettings.kcfgc
1010e3
+  OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kmymoneysettings.h  ${CMAKE_CURRENT_BINARY_DIR}/kmymoneysettings.cpp
1010e3
+  DEPENDS ${CMAKE_SOURCE_DIR}/kmymoney/kmymoney.kcfg ${CMAKE_SOURCE_DIR}/kmymoney/kmymoneysettings.kcfgc
1010e3
+  COMMAND ${KDE4_KCFGC_EXECUTABLE} -d ${CMAKE_CURRENT_BINARY_DIR}/ ${CMAKE_SOURCE_DIR}/kmymoney/kmymoney.kcfg ${CMAKE_SOURCE_DIR}/kmymoney/kmymoneysettings.kcfgc
1010e3
   )
1010e3
 
1010e3
-
1010e3
 set (libsettings_a_SOURCES
1010e3
-  ${KMyMoney2_BINARY_DIR}/kmymoneysettings.h
1010e3
+  ${CMAKE_CURRENT_BINARY_DIR}/kmymoneysettings.cpp
1010e3
   ksettingscolors.cpp
1010e3
   ksettingsfonts.cpp
1010e3
   ksettingsforecast.cpp
1010e3
-- 
1010e3
2.13.4
1010e3