Detect win32-msvc target
Automatically set compilers based on old mkspec style target Pick-to: 6.2 Change-Id: I80404376964a85c6b519657c054d008da47aed91 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
127f658cc9
commit
b62fcccb15
@ -733,6 +733,9 @@ function(guess_compiler_from_mkspec)
|
||||
elseif(mkspec MATCHES "-icc(-|$)")
|
||||
set(c_compiler "icc")
|
||||
set(cxx_compiler "icpc")
|
||||
elseif(mkspec MATCHES "-msvc(-|$)")
|
||||
set(c_compiler "cl")
|
||||
set(cxx_compiler "cl")
|
||||
endif()
|
||||
if(guess_c_compiler AND NOT c_compiler STREQUAL "")
|
||||
push("-DCMAKE_C_COMPILER=${c_compiler}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user