<table><tr><td style="">wbauer created this revision.<br />wbauer added a project: Ark.<br />Herald added subscribers: Ark, kde-utils-devel.<br />wbauer requested review of this revision.
</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/D22983">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p><tt style="background: #ebebeb; font-size: 13px;">VERSION_GREATER_EQUAL</tt> was introduced in cmake 3.7, but the specified minimum version is 3.0.<br />
So use <tt style="background: #ebebeb; font-size: 13px;">VERSION_LESS</tt> instead (and swap the branches) to still support older cmake versions too.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Builds fine with cmake 3.5.2 now, and also newer versions.<br />
The file is still installed to ${KDE_INSTALL_LOGGINGCATEGORIESDIR} when building with latest KF5 from git, haven't tried older versions.</p>
<p>Before, I got this error when using cmake 3.5.2:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" 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);">CMake Error at CMakeLists.txt:108 (if):
if given arguments:
"ECM_VERSION" "VERSION_GREATER_EQUAL" "5.59.0"
Unknown arguments specified</pre></div>
</div></div><br /><div><strong>REPOSITORY</strong><div><div>R36 Ark</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22983">https://phabricator.kde.org/D22983</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt</div></div></div><br /><div><strong>To: </strong>wbauer<br /><strong>Cc: </strong>kde-utils-devel, Ark, fbampaloukas, tctara<br /></div>