diff --git a/cmake/QtProcessConfigureArgs.cmake b/cmake/QtProcessConfigureArgs.cmake index b0b4e74dbf..ce64c0e978 100644 --- a/cmake/QtProcessConfigureArgs.cmake +++ b/cmake/QtProcessConfigureArgs.cmake @@ -702,7 +702,7 @@ if(NOT generator AND auto_detect_generator) else() if(CMAKE_HOST_UNIX) set(generator "Unix Makefiles") - elseif(CMAKE_HOST_WINDOWS) + elseif(CMAKE_HOST_WIN32) find_program(msvc_compiler cl.exe) if(msvc_compiler) set(generator "NMake Makefiles")