diff options
author | Cristian Adam <cristian.adam@gmail.com> | 2020-01-14 17:48:08 (GMT) |
---|---|---|
committer | Cristian Adam <cristian.adam@gmail.com> | 2020-01-14 17:48:08 (GMT) |
commit | 274a6f3699c1ad7b099bbabf49618f23122d84f0 (patch) | |
tree | 881df0530d3d267f6b46eb4bee61468ae595fad2 /Source | |
parent | e74049b3887432cbb972bb0948edf6615a7ebd69 (diff) | |
download | CMake-274a6f3699c1ad7b099bbabf49618f23122d84f0.zip CMake-274a6f3699c1ad7b099bbabf49618f23122d84f0.tar.gz CMake-274a6f3699c1ad7b099bbabf49618f23122d84f0.tar.bz2 |
Unity Build: include language in generated source file name
Fixes: #20206
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index be13a37..fca04a8 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2523,7 +2523,7 @@ void cmLocalGenerator::AddUnityBuild(cmGeneratorTarget* target) chunk = std::min(itemsLeft, batchSize); std::string filename = cmStrCat(filename_base, "unity_", batch, - (lang == "C") ? ".c" : ".cxx"); + (lang == "C") ? "_c.c" : "_cxx.cxx"); const std::string filename_tmp = cmStrCat(filename, ".tmp"); { |