diff options
author | Andreas Schuh <andreas.schuh.84@gmail.com> | 2016-03-17 11:02:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-03-17 14:40:24 (GMT) |
commit | be5a8973c39e13d8978c242936dca63a9a746a57 (patch) | |
tree | 6dbc135114c5df0e03df464d14f338b0d2b998ff /Modules/GenerateExportHeader.cmake | |
parent | bf0712866f3245034f5ee7d5835f5e4ed5f47626 (diff) | |
download | CMake-be5a8973c39e13d8978c242936dca63a9a746a57.zip CMake-be5a8973c39e13d8978c242936dca63a9a746a57.tar.gz CMake-be5a8973c39e13d8978c242936dca63a9a746a57.tar.bz2 |
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/GenerateExportHeader.cmake')
-rw-r--r-- | Modules/GenerateExportHeader.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake index 4f4efbc..6389d30 100644 --- a/Modules/GenerateExportHeader.cmake +++ b/Modules/GenerateExportHeader.cmake @@ -341,7 +341,9 @@ macro(_DO_GENERATE_EXPORT_HEADER TARGET_LIBRARY) string(MAKE_C_IDENTIFIER ${STATIC_DEFINE} STATIC_DEFINE) if(_GEH_DEFINE_NO_DEPRECATED) - set(DEFINE_NO_DEPRECATED TRUE) + set(DEFINE_NO_DEPRECATED 1) + else() + set(DEFINE_NO_DEPRECATED 0) endif() if(_GEH_NO_DEPRECATED_MACRO_NAME) |