<table><tr><td style="">kossebau created this revision.<br />kossebau added reviewers: Build System, Frameworks, dfaure.<br />Herald added projects: Frameworks, Build System.<br />Herald added subscribers: kde-buildsystem, 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/D25589">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The original intention has been that by default during the build of a<br />
library no warnings should be emitted on using own deprecated API,<br />
as for one that has to be implemented as well as often deprecated API<br />
is implemented using other deprecated API, so the warnings are not<br />
helpful, and having to add lots of push/pop warnings instructions<br />
in the code for the compiler harms readability more than it helps<br />
ensuring to only use deprecated API where one has to.</p>
<p>The original intention was satisfied due to the default mechanism in the<br />
generated export header code, where DEPRECATED_WARNINGS_SINCE if not set<br />
defaults to DISABLE_DEPRECATED_BEFORE_AND_AT. That though breaks once<br />
the group version of DEPRECATED_WARNINGS_SINCE is set in the build, as<br />
this default has higher priority by design, even if the usage here only<br />
wants to target dependency libs of the same group, not the current library.</p>
<p>To restore the intented default behaviour, by default<br />
DEPRECATED_WARNINGS_SINCE is now explicitely set for the library build<br />
itself to the EXCLUDE_DEPRECATED_BEFORE_AND_AT value, and a new macro<br />
option allows to disable this.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R240 Extra CMake Modules</div></div></div><br /><div><strong>BRANCH</strong><div><div>NO_BUILD_SET_DEPRECATED_WARNINGS_SINCE</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25589">https://phabricator.kde.org/D25589</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>modules/ECMGenerateExportHeader.cmake</div></div></div><br /><div><strong>To: </strong>kossebau, Build System, Frameworks, dfaure<br /><strong>Cc: </strong>kde-frameworks-devel, kde-buildsystem, LeGast00n, GB_2, bencreasy, michaelh, ngraham, bruns<br /></div>