FASTBuild: fix configure for non-English MSVC

Fixes: #27483
This commit is contained in:
Eduard Voronkin
2026-01-06 16:45:38 -05:00
committed by Brad King
parent 68c8e0e3e5
commit 416d86ab32
+2 -1
View File
@@ -1020,7 +1020,8 @@ void cmGlobalFastbuildGenerator::AddCompiler(std::string const& language,
// If FASTBUILD_COMPILER_EXTRA_FILES is not set - automatically add extra
// files based on compiler (see
// https://fastbuild.org/docs/functions/compiler.html)
if (compilerDef.ExtraFiles.empty() &&
if (!this->GetCMakeInstance()->GetIsInTryCompile() &&
compilerDef.ExtraFiles.empty() &&
(language == "C" || language == "CXX") &&
compilerDef.CmakeCompilerID == "MSVC") {
// https://cmake.org/cmake/help/latest/variable/MSVC_VERSION.html