diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-09-23 05:44:37 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-09-23 06:04:16 (GMT) |
commit | cdf55d5cb4c03a29c21b5eae8ac5c59d244b9b45 (patch) | |
tree | 3100e3f1c7d704bb16f79db55acb7bb575117234 | |
parent | 80d5090a2c084c1b14a4cafce14d8ca9fec8a6c9 (diff) | |
download | CMake-cdf55d5cb4c03a29c21b5eae8ac5c59d244b9b45.zip CMake-cdf55d5cb4c03a29c21b5eae8ac5c59d244b9b45.tar.gz CMake-cdf55d5cb4c03a29c21b5eae8ac5c59d244b9b45.tar.bz2 |
GEH: Make each element of the deprecation macros overridable.
This way, we can override only FOO_DEPRECATED to silence deprecation
for a library.
-rw-r--r-- | Modules/exportheader.cmake.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/exportheader.cmake.in b/Modules/exportheader.cmake.in index 4fe589d..118de16 100644 --- a/Modules/exportheader.cmake.in +++ b/Modules/exportheader.cmake.in @@ -23,7 +23,13 @@ #ifndef @DEPRECATED_MACRO_NAME@ # define @DEPRECATED_MACRO_NAME@ @DEFINE_DEPRECATED@ +#endif + +#ifndef @DEPRECATED_MACRO_NAME@_EXPORT # define @DEPRECATED_MACRO_NAME@_EXPORT @EXPORT_MACRO_NAME@ @DEPRECATED_MACRO_NAME@ +#endif + +#ifndef @DEPRECATED_MACRO_NAME@_NO_EXPORT # define @DEPRECATED_MACRO_NAME@_NO_EXPORT @NO_EXPORT_MACRO_NAME@ @DEPRECATED_MACRO_NAME@ #endif |