diff options
author | Andreas Schuh <andreas.schuh.84@gmail.com> | 2016-03-17 11:02:26 +0000 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-03-17 10:40:24 -0400 |
commit | be5a8973c39e13d8978c242936dca63a9a746a57 (patch) | |
tree | 6dbc135114c5df0e03df464d14f338b0d2b998ff /Modules/exportheader.cmake.in | |
parent | bf0712866f3245034f5ee7d5835f5e4ed5f47626 (diff) | |
download | cmake-be5a8973c39e13d8978c242936dca63a9a746a57.tar.gz |
GenerateExportHeader: Do not define DEFINE_NO_DEPRECATED (#16022)
Previously we allowed this definition to persist outside our header.
This would cause conflicts across multiple such headers because the name
was always the same. Fix this by avoiding the definition altogether.
Diffstat (limited to 'Modules/exportheader.cmake.in')
-rw-r--r-- | Modules/exportheader.cmake.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/exportheader.cmake.in b/Modules/exportheader.cmake.in index 118de16d69..7058f545a7 100644 --- a/Modules/exportheader.cmake.in +++ b/Modules/exportheader.cmake.in @@ -33,8 +33,7 @@ # define @DEPRECATED_MACRO_NAME@_NO_EXPORT @NO_EXPORT_MACRO_NAME@ @DEPRECATED_MACRO_NAME@ #endif -#cmakedefine01 DEFINE_NO_DEPRECATED -#if DEFINE_NO_DEPRECATED +#if @DEFINE_NO_DEPRECATED@ /* DEFINE_NO_DEPRECATED */ # define @NO_DEPRECATED_MACRO_NAME@ #endif |