<table><tr><td style="">wbauer created this revision.<br />wbauer added a reviewer: gottfried.<br />wbauer added a project: KDE Applications.<br />Herald added a project: KDE Edu.<br />Herald added a subscriber: kde-edu.<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/D22990">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Setting the cmake_policy fails if an older cmake version is used, so only set it to 3.10 if cmake is really 3.10 or higher.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Building with cmake 3.5.2 succeeds again, before I got this error:</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:11 (cmake_policy):
An attempt was made to set the policy version of CMake to "3.10" which is
greater than this version of CMake. This is not allowed because the
greater version may have new policies not known to this CMake. You may
need a newer CMake version to build this project.</pre></div>
<p>The warnings that appeared with cmake 3.10+ earlier (before <a href="https://phabricator.kde.org/R336:56ec6f23e9c4cc99c5c7d28f312b580755cbd285" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">56ec6f23e9c4cc99c5c7d28f312b580755cbd285</a>) are still gone.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R336 KTouch</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22990">https://phabricator.kde.org/D22990</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt</div></div></div><br /><div><strong>To: </strong>wbauer, gottfried<br /><strong>Cc: </strong>kde-edu, KDE Applications, fbampaloukas, alexeymin, genaxxx, jriddell, narvaez, apol<br /></div>