diff options
author | Kaloyan Donev <kdonev@gmail.com> | 2022-02-07 07:01:32 (GMT) |
---|---|---|
committer | Kaloyan Donev <kdonev@gmail.com> | 2022-02-08 06:07:00 (GMT) |
commit | b764c7c2731614147c3e4e6379c47df7a92bc3e3 (patch) | |
tree | b7445e799887b80da0368723abb76039ca999323 /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | ca4bb89f276e244b5b56d1988cd659d30df1ca5a (diff) | |
download | CMake-b764c7c2731614147c3e4e6379c47df7a92bc3e3.zip CMake-b764c7c2731614147c3e4e6379c47df7a92bc3e3.tar.gz CMake-b764c7c2731614147c3e4e6379c47df7a92bc3e3.tar.bz2 |
VS: Add property to turn off Visual Studio compile batching
Resolves: #23179
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 7b197fa..912210d 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -3298,7 +3298,9 @@ void cmVisualStudio10TargetGenerator::WriteClOptions( } else if (this->MSTools) { cmsys::RegularExpression clangToolset("v[0-9]+_clang_.*"); const char* toolset = this->GlobalGenerator->GetPlatformToolset(); - if (toolset && clangToolset.find(toolset)) { + cmValue noCompileBatching = + this->GeneratorTarget->GetProperty("VS_NO_COMPILE_BATCHING"); + if (noCompileBatching.IsOn() || (toolset && clangToolset.find(toolset))) { e2.Element("ObjectFileName", "$(IntDir)%(filename).obj"); } else { e2.Element("ObjectFileName", "$(IntDir)"); |