<table><tr><td style="">cgiboudeaux added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D19830">View Revision</a></tr></table><br /><div><div><p>Maybe the 'OBJECT'[1] target type could help here, e.g (builds locally, no idea if it could solve your race):</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="diff" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"><span style="color: #000080">diff --git a/resources/kalarm/kalarm/CMakeLists.txt b/resources/kalarm/kalarm/CMakeLists.txt</span>
<span style="color: #000080">index a57de92bb..5b3a6ca19 100644</span>
<span style="color: #a00000">--- a/resources/kalarm/kalarm/CMakeLists.txt</span>
<span style="color: #00a000">+++ b/resources/kalarm/kalarm/CMakeLists.txt</span>
<span style="color: #800080">@@ -20,7 +20,6 @@ set(kalarmresource_SRCS</span>
install(FILES kalarmresource.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents")
<span style="color: #a00000">-ki18n_wrap_ui(kalarmresource_SRCS ../shared/alarmtyperadiowidget.ui)</span>
kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/kalarmresource.kcfg org.kde.Akonadi.KAlarm.Settings)
qt5_add_dbus_adaptor(kalarmresource_SRCS
${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.KAlarm.Settings.xml settings.h Akonadi_KAlarm_Resource::Settings icalsettingsadaptor ICalSettingsAdaptor)
<span style="color: #800080">@@ -29,7 +28,14 @@ ecm_qt_declare_logging_category(kalarmresource_SRCS HEADER kalarmresource_debug.</span>
add_custom_target(kalarm_resource_xml ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.KAlarm.Settings.xml)
<span style="color: #a00000">-add_executable(akonadi_kalarm_resource ${kalarmresource_SRCS})</span>
<span style="color: #00a000">+# ui_alartyperadiowidget.h is used by both akonadi_kalarm_resource and kalarmconfig</span>
<span style="color: #00a000">+ki18n_wrap_ui(kalarmresource_shared_SRCS ../shared/alarmtyperadiowidget.ui)</span>
<span style="color: #00a000">+add_library(akonadi_kalarm_resource_shared OBJECT ${kalarmresource_shared_SRCS})</span>
<span style="color: #00a000">+</span>
<span style="color: #00a000">+add_executable(akonadi_kalarm_resource</span>
<span style="color: #00a000">+ $<TARGET_OBJECTS:akonadi_kalarm_resource_shared></span>
<span style="color: #00a000">+ ${kalarmresource_SRCS}</span>
<span style="color: #00a000">+)</span>
if( APPLE )
set_target_properties(akonadi_kalarm_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template)
<span style="color: #800080">@@ -54,6 +60,7 @@ install(TARGETS akonadi_kalarm_resource ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})</span>
############################## Config plugin #################################
set(kalarmconfig_SRCS
<span style="color: #00a000">+ $<TARGET_OBJECTS:akonadi_kalarm_resource_shared></span>
kalarmconfig.cpp
../shared/alarmtyperadiowidget.cpp
${kalarmresource_common_SRCS}</pre></div>
<p>[1] <a href="https://cmake.org/cmake/help/v3.5/command/add_library.html#object-libraries" class="remarkup-link" target="_blank" rel="noreferrer">https://cmake.org/cmake/help/v3.5/command/add_library.html#object-libraries</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R44 KDE PIM Runtime</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19830">https://phabricator.kde.org/D19830</a></div></div><br /><div><strong>To: </strong>jriddell, mlaurent, KDE PIM, cgiboudeaux<br /><strong>Cc: </strong>pino, dvratil, kde-pim, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss<br /></div>