mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-01-26 19:09:06 +00:00
Merge topic 'FASTBuild-optimize-try_compile' into release-4.2
f6abf8044a FASTBuild: Disable caching and distribution in try_compile builds Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !11365
This commit is contained in:
commit
37d7b9820e
@ -893,6 +893,10 @@ void cmGlobalFastbuildGenerator::WriteCompilers()
|
||||
}
|
||||
WriteVariable("Executable", Quote(compilerPath), 1);
|
||||
WriteVariable("CompilerFamily", Quote(compilerDef.CompilerFamily), 1);
|
||||
if (this->GetCMakeInstance()->GetIsInTryCompile()) {
|
||||
WriteVariable("AllowCaching", "false", 1);
|
||||
WriteVariable("AllowDistribution", "false", 1);
|
||||
}
|
||||
|
||||
if (compilerDef.UseLightCache && compilerDef.CompilerFamily == "msvc") {
|
||||
WriteVariable("UseLightCache_Experimental", "true", 1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user