summaryrefslogtreecommitdiffstats
path: root/Modules/exportheader.cmake.in
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-09-23 05:44:37 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-09-23 06:04:16 (GMT)
commitcdf55d5cb4c03a29c21b5eae8ac5c59d244b9b45 (patch)
tree3100e3f1c7d704bb16f79db55acb7bb575117234 /Modules/exportheader.cmake.in
parent80d5090a2c084c1b14a4cafce14d8ca9fec8a6c9 (diff)
downloadCMake-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.
Diffstat (limited to 'Modules/exportheader.cmake.in')
-rw-r--r--Modules/exportheader.cmake.in6
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