From 53214d124e4806809fabe83d614c06e3d1552089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 4 Feb 2020 00:55:27 +0100 Subject: Fix multiple processing of kcfgc files in the same directory. Instead, processing into the current binary directory is performed. This resolves FTBFS with ninja-build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- konsolekalendar/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'konsolekalendar') diff --git a/konsolekalendar/CMakeLists.txt b/konsolekalendar/CMakeLists.txt index 2c736bc5..8738d401 100644 --- a/konsolekalendar/CMakeLists.txt +++ b/konsolekalendar/CMakeLists.txt @@ -38,18 +38,18 @@ install( FILES konsolekalendar.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) ##### helper #################################### macro( process_kcfg _who _out _path _kcfg _kcfgc ) - add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/${_path}/${_out} + add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_path}/${_out} COMMAND - mkdir -p ${CMAKE_BINARY_DIR}/${_path} + mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/${_path} COMMAND ${KDE3_KCFGC_EXECUTABLE} - -d ${CMAKE_BINARY_DIR}/${_path} + -d ${CMAKE_CURRENT_BINARY_DIR}/${_path} ${CMAKE_SOURCE_DIR}/${_path}/${_kcfg} ${CMAKE_SOURCE_DIR}/${_path}/${_kcfgc} DEPENDS ${CMAKE_SOURCE_DIR}/${_path}/${_kcfg} ${CMAKE_SOURCE_DIR}/${_path}/${_kcfgc} ) set_property( SOURCE ${_who} APPEND - PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/${_path}/${_out} ) + PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_path}/${_out} ) endmacro( ) -- cgit v1.2.3