diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-02-04 00:55:27 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-02-04 00:55:47 +0100 |
commit | 7e6826acb8463a60b4c7179841784127669f9dd3 (patch) | |
tree | 229074923b3d7b11611394f4a029e3bb33c65552 /wizards | |
parent | 82d3e5d6303d901f09752be3cd3c0998cfb46f64 (diff) | |
download | tdepim-7e6826acb8463a60b4c7179841784127669f9dd3.tar.gz tdepim-7e6826acb8463a60b4c7179841784127669f9dd3.zip |
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.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 53214d124e4806809fabe83d614c06e3d1552089)
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wizards/CMakeLists.txt b/wizards/CMakeLists.txt index 443a90220..5aef143b1 100644 --- a/wizards/CMakeLists.txt +++ b/wizards/CMakeLists.txt @@ -58,18 +58,18 @@ install( FILES ##### 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() |