Save the _MSC_VER variable instead of <unknown version>

That way, for future or old versions, we at least will know which
version it is. For example, for MSVC "14.0" (compiler version 19), it
produces "MSVC _MSC_VER 1900".

Change-Id: I86dcaea8e4b23bd052288cea5663b267da31c890
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Thiago Macieira 2014-06-30 16:19:02 -07:00
parent 2e038d681c
commit 7a848d5f13

View File

@ -305,7 +305,7 @@ QLibraryInfo::buildDate()
# elif _MSC_VER < 1900 # elif _MSC_VER < 1900
# define COMPILER_STRING "MSVC 2013" # define COMPILER_STRING "MSVC 2013"
# else # else
# define COMPILER_STRING "MSVC <unknown version>" # define COMPILER_STRING "MSVC _MSC_VER " QT_STRINGIFY(_MSC_VER)
# endif # endif
#else #else
# define COMPILER_STRING "<unknown compiler>" # define COMPILER_STRING "<unknown compiler>"