summaryrefslogtreecommitdiff
path: root/Modules/exportheader.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/exportheader.cmake.in')
-rw-r--r--Modules/exportheader.cmake.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/exportheader.cmake.in b/Modules/exportheader.cmake.in
index 7058f545a7..7cfbcbda46 100644
--- a/Modules/exportheader.cmake.in
+++ b/Modules/exportheader.cmake.in
@@ -34,7 +34,9 @@
#endif
#if @DEFINE_NO_DEPRECATED@ /* DEFINE_NO_DEPRECATED */
-# define @NO_DEPRECATED_MACRO_NAME@
+# ifndef @NO_DEPRECATED_MACRO_NAME@
+# define @NO_DEPRECATED_MACRO_NAME@
+# endif
#endif
#endif