diff options
author | Amine Najahi <anajahi@mathworks.com> | 2021-04-22 19:26:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-05 14:56:49 (GMT) |
commit | f3f57cc4edd528aaf0b8d8633d5f9990f0d804af (patch) | |
tree | 3ca9148977b9d0044fc5524e9fd3c1f93adeecad /Source/cmMakefileTargetGenerator.cxx | |
parent | 186c9bff5342c1e8e73fce9cf361b6de5dda3f28 (diff) | |
download | CMake-f3f57cc4edd528aaf0b8d8633d5f9990f0d804af.zip CMake-f3f57cc4edd528aaf0b8d8633d5f9990f0d804af.tar.gz CMake-f3f57cc4edd528aaf0b8d8633d5f9990f0d804af.tar.bz2 |
NMake: Use UTF-8 with BOM if supported by nmake
Fixes: #21792
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index fa469ed..5b6c58d 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -2058,7 +2058,8 @@ std::string cmMakefileTargetGenerator::CreateResponseFile( // Create the response file. std::string responseFileNameFull = cmStrCat(this->TargetBuildDirectoryFull, '/', name); - cmGeneratedFileStream responseStream(responseFileNameFull); + cmGeneratedFileStream responseStream( + responseFileNameFull, false, this->GlobalGenerator->GetMakefileEncoding()); responseStream.SetCopyIfDifferent(true); responseStream << options << "\n"; |