Skip to content

Commit

Permalink
Detect win32-msvc target
Browse files Browse the repository at this point in the history
Automatically set compilers based on old mkspec style target

Pick-to: 6.2
Change-Id: I80404376964a85c6b519657c054d008da47aed91
Reviewed-by: Joerg Bornemann <[email protected]>
  • Loading branch information
Allan Sandfeld Jensen committed Jun 15, 2021
1 parent 127f658 commit b62fccc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/QtProcessConfigureArgs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit b62fccc

Please sign in to comment.