aboutsummaryrefslogtreecommitdiff
path: root/find-modules
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2019-11-28 13:48:45 +0100
committerFriedrich W. H. Kossebau <kossebau@kde.org>2019-12-02 00:04:38 +0100
commit23d868a0771224c844513ab16ae423e5302d139b (patch)
treef9ca6671cd0b7283c42a63b4abc721dfb43f8313 /find-modules
parentbfdcec82d926416ac2eb3657b903414b52f72e31 (diff)
downloadextra-cmake-modules-23d868a0771224c844513ab16ae423e5302d139b.tar.gz
extra-cmake-modules-23d868a0771224c844513ab16ae423e5302d139b.tar.bz2
ECMGenerateExportHeader: add NO_BUILD_SET_DEPRECATED_WARNINGS_SINCE flag
Summary: The original intention has been that by default during the build of a library no warnings should be emitted on using own deprecated API, as for one that has to be implemented as well as often deprecated API is implemented using other deprecated API, so the warnings are not helpful, and having to add lots of push/pop warnings instructions in the code for the compiler harms readability more than it helps ensuring to only use deprecated API where one has to. The original intention was satisfied due to the default mechanism in the generated export header code, where DEPRECATED_WARNINGS_SINCE if not set defaults to DISABLE_DEPRECATED_BEFORE_AND_AT. That though breaks once the group version of DEPRECATED_WARNINGS_SINCE is set in the build, as this default has higher priority by design, even if the usage here only wants to target dependency libs of the same group, not the current library. To restore the intented default behaviour, by default DEPRECATED_WARNINGS_SINCE is now explicitely set for the library build itself to the EXCLUDE_DEPRECATED_BEFORE_AND_AT value, and a new macro option allows to disable this. Reviewers: #build_system, #frameworks, dfaure Reviewed By: dfaure Subscribers: kde-frameworks-devel, kde-buildsystem Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D25589
Diffstat (limited to 'find-modules')
0 files changed, 0 insertions, 0 deletions