summaryrefslogtreecommitdiff
path: root/Modules/exportheader.cmake.in
diff options
context:
space:
mode:
authorAndreas Schuh <andreas.schuh.84@gmail.com>2016-03-17 11:09:53 +0000
committerBrad King <brad.king@kitware.com>2016-03-17 10:40:58 -0400
commit6a6e5d89b5665508276d65de4c82f0b4daa2dcfd (patch)
treed54b91e18c5c4905ea995599bba90efcec6fe683 /Modules/exportheader.cmake.in
parentbe5a8973c39e13d8978c242936dca63a9a746a57 (diff)
downloadcmake-6a6e5d89b5665508276d65de4c82f0b4daa2dcfd.tar.gz
GenerateExportHeader: Allow common NO_DEPRECATED_MACRO_NAME for multiple libs
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