summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2020-01-14 17:48:08 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2020-01-14 17:48:08 (GMT)
commit274a6f3699c1ad7b099bbabf49618f23122d84f0 (patch)
tree881df0530d3d267f6b46eb4bee61468ae595fad2 /Source
parente74049b3887432cbb972bb0948edf6615a7ebd69 (diff)
downloadCMake-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.cxx2
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");
{