Fix redefine of QT_NO_VERSION_TAGGING warnings
If a user requests no version tagging by defining QT_NO_VERSION_TAGGING a lot of redefine warnings will be output from the compiler when building corelib. So only define QT_NO_VERSION_TAGGING if it is not already defined. Pick-to: 6.4 Change-Id: I56609b3589184bda7bec52d168d9fd11e2f14a2c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
8e93099349
commit
265b1369a3
@ -73,7 +73,7 @@ struct QVersionTag
|
||||
};
|
||||
}
|
||||
|
||||
#if defined(QT_BUILD_CORE_LIB) || defined(QT_BOOTSTRAPPED) || defined(QT_STATIC)
|
||||
#if !defined(QT_NO_VERSION_TAGGING) && (defined(QT_BUILD_CORE_LIB) || defined(QT_BOOTSTRAPPED) || defined(QT_STATIC))
|
||||
// don't make tags in QtCore, bootstrapped systems or if the user asked not to
|
||||
# define QT_NO_VERSION_TAGGING
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user