From 6a6e5d89b5665508276d65de4c82f0b4daa2dcfd Mon Sep 17 00:00:00 2001 From: Andreas Schuh Date: Thu, 17 Mar 2016 11:09:53 +0000 Subject: [PATCH] GenerateExportHeader: Allow common NO_DEPRECATED_MACRO_NAME for multiple libs --- Modules/exportheader.cmake.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Modules/exportheader.cmake.in b/Modules/exportheader.cmake.in index 7058f545a..7cfbcbda4 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