<table><tr><td style="">pino 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>It's a simple race condition between two targets:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">ui_alarmtyperadiowidget.h is included by ../shared/alarmtyperadiowidget.cpp</li>
<li class="remarkup-list-item">ui_alarmtyperadiowidget.h is built only as part of the akonadi_kalarm_resource target</li>
<li class="remarkup-list-item">both the akonadi_kalarm_resource, and kalarmconfig targets have ../shared/alarmtyperadiowidget.cpp as source</li>
</ul>
<p>hence, if ui_alarmtyperadiowidget.h is not generated before the build of the kalarmconfig starts, then the error happens</p>
<p>IMHO this patch does not fix the issue, because nothing will make the build of the kalarmconfig target wait for the generated ui_alarmtyperadiowidget.h.</p>
<p>A simpler solution is to make the kalarmconfig target depend on the akonadi_kalarm_resource one:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="cmake" 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: #304a96">add_dependencies</span><span class="p">(</span><span style="color: #766510">kalarmconfig</span> <span style="color: #766510">akonadi_kalarm_resource</span><span class="p">)</span></pre></div></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>