<table><tr><td style="">apol created this revision.<br />apol added a reviewer: Frameworks.
</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/D3178" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Instead of having an odd fake of it. Will help some required<br />
refactorings and already showed some issues, fixed by this patch,<br />
namely:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">don't use string(regex replace) to extract a string from another</li>
</ul>
<p>string. in case it doesn't match it will offer the whole content which<br />
is never what we want.</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">messages(ERROR), the correct parameter is FATAL_ERROR, cmake</li>
</ul>
<p>understands "ERROR" as mere output string</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">turn the macro into a function, otherwise 2 calls in the same</li>
</ul>
<p>subdirectory are dangerous.</p>
<p>CCBUG: 371562</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>tests still pass, projects that use the macro still build</p></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3178" rel="noreferrer">https://phabricator.kde.org/D3178</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>KF5ConfigMacros.cmake<br />
autotests/kconfig_compiler/CMakeLists.txt<br />
autotests/kconfig_compiler/test1.kcfgc<br />
autotests/kconfig_compiler/test12.kcfgc<br />
autotests/kconfig_compiler/test13.kcfgc<br />
autotests/kconfig_compiler/test9.kcfgc<br />
autotests/kconfig_compiler/test_qdebugcategory.kcfgc</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>apol, Frameworks<br /></div>