Correctly detect the MSVC compiler

But without a version number for now.

Change-Id: I0a976ba463cff6812faf85de03a6ad003ea582f5
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
Lars Knoll 2016-06-27 10:56:50 +02:00
parent 2f4ce3b778
commit 9fb56cfaae

View File

@ -193,6 +193,9 @@ defineTest(qtConfTest_checkCompiler) {
$${1}.compilerId = "icc"
version = "$$system($$QMAKE_CXX -v)"
$${1}.compilerVersion = $$replace(version, "icpc version ([0-9.]+).*", "\\1")
} else: msvc {
$${1}.compilerDescription = "MSVC"
$${1}.compilerId = "cl"
} else {
return(false)
}