mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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.
This commit is contained in:
@@ -33,9 +33,10 @@
|
||||
# define LIBSHARED_DEPRECATED_NO_EXPORT LIBSHARED_NO_EXPORT LIBSHARED_DEPRECATED
|
||||
#endif
|
||||
|
||||
#define DEFINE_NO_DEPRECATED 0
|
||||
#if DEFINE_NO_DEPRECATED
|
||||
# define LIBSHARED_NO_DEPRECATED
|
||||
#if 0 /* DEFINE_NO_DEPRECATED */
|
||||
# ifndef LIBSHARED_NO_DEPRECATED
|
||||
# define LIBSHARED_NO_DEPRECATED
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -33,9 +33,10 @@
|
||||
# define LIBSTATIC_DEPRECATED_NO_EXPORT LIBSTATIC_NO_EXPORT LIBSTATIC_DEPRECATED
|
||||
#endif
|
||||
|
||||
#define DEFINE_NO_DEPRECATED 0
|
||||
#if DEFINE_NO_DEPRECATED
|
||||
# define LIBSTATIC_NO_DEPRECATED
|
||||
#if 0 /* DEFINE_NO_DEPRECATED */
|
||||
# ifndef LIBSTATIC_NO_DEPRECATED
|
||||
# define LIBSTATIC_NO_DEPRECATED
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user