CMake: Fix CMake generator auto-selection on Windows
The variable to check for a Windows host system was mis-typed. Change-Id: I25b14b80d25bfec0c1a00e99833520b6fb6a4b02 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
parent
4c0ca7dd26
commit
90e384d286
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user