From 61eb0519af1a106f89fad6216d1ce90721e113ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 11 Oct 2024 03:32:38 +0200 Subject: [PATCH] CMake: Add explicit source dependency for generated header. This solves FTBFS with parallel build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kmyfirewall/ipteditor/CMakeLists.txt | 6 ++++++ .../ruleoptionplugins/log_target_option/CMakeLists.txt | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/kmyfirewall/ipteditor/CMakeLists.txt b/kmyfirewall/ipteditor/CMakeLists.txt index 66d39e6..b981174 100644 --- a/kmyfirewall/ipteditor/CMakeLists.txt +++ b/kmyfirewall/ipteditor/CMakeLists.txt @@ -14,6 +14,12 @@ tde_add_library( kmfipteditorpart SHARED AUTOMOC DESTINATION ${PLUGIN_INSTALL_DIR} ) +set_property( + SOURCE kmfruleedit.h + APPEND PROPERTY OBJECT_DEPENDS + ${CMAKE_BINARY_DIR}/kmyfirewall/ipteditor/kmyfirewallruleeditor.h +) + ##### other data diff --git a/kmyfirewall/ruleoptionplugins/log_target_option/CMakeLists.txt b/kmyfirewall/ruleoptionplugins/log_target_option/CMakeLists.txt index 532e1c7..dc0ba76 100644 --- a/kmyfirewall/ruleoptionplugins/log_target_option/CMakeLists.txt +++ b/kmyfirewall/ruleoptionplugins/log_target_option/CMakeLists.txt @@ -13,6 +13,12 @@ tde_add_library( kmfruletargetoptionedit_log SHARED AUTOMOC DESTINATION ${PLUGIN_INSTALL_DIR} ) +set_property( + SOURCE kmfruletargetoptioneditlog.cpp + APPEND PROPERTY OBJECT_DEPENDS + ${CMAKE_BINARY_DIR}/kmyfirewall/ipteditor/kmyfirewallruleeditor.h +) + ##### other data