<table><tr><td style="">kossebau created this revision.<br />kossebau added a reviewer: Frameworks.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />kossebau 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/D19567">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The build configuration depends on the value of the "File=" entry in the<br />
kcfg file, as this file name is used in the build instructions.<br />
So if the name is changed, cmake would need to be rerun.<br />
Adding the kcfgc file to CMAKE_CONFIGURE_DEPENDS makes cmake know about that<br />
dependency.<br />
While this will also result in a reconfiguarion if non-File entries are<br />
edited, this should not happen too often, so the extra costs outweighs the<br />
unexpected and confusing behaviour due to outdated build instructions<br />
in case the File= entry is changed.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Before this change renaming a kcfg file before did not trigger a rerun of cmake,<br />
resulting in outdated builds instructions and unexpected behaviour.<br />
With this change cmake is rerun once the kcgc file is edited, so build<br />
instructions are always up-to-date.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R237 KConfig</div></div></div><br /><div><strong>BRANCH</strong><div><div>reruncmakeonkfgcchange</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19567">https://phabricator.kde.org/D19567</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>KF5ConfigMacros.cmake</div></div></div><br /><div><strong>To: </strong>kossebau, Frameworks<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>