FASTBuild: Prefer first compiler in PATH on Windows

We already do this for other command-line generators on Windows.

Fixes: #27923
This commit is contained in:
Eduard Voronkin
2026-07-13 18:54:00 -04:00
committed by Brad King
parent 44125a9e97
commit f143ff5ba4
+1 -1
View File
@@ -57,7 +57,7 @@ macro(_cmake_find_compiler lang)
NO_DEFAULT_PATH
DOC "${lang} compiler")
endif()
if(CMAKE_HOST_WIN32 AND CMAKE_GENERATOR MATCHES "Ninja|MSYS Makefiles|MinGW Makefiles")
if(CMAKE_HOST_WIN32 AND CMAKE_GENERATOR MATCHES "Ninja|MSYS Makefiles|MinGW Makefiles|FASTBuild")
# On Windows command-line builds, some generators imply a preferred compiler tool.
# These generators do not, so use the compiler that occurs first in PATH.
find_program(CMAKE_${lang}_COMPILER