summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-03 15:45:44 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-02-03 15:45:52 (GMT)
commitafda647ac3d7776a38f3a290deb2a0912514fb83 (patch)
tree58827b8335033026258ab2c7675aabfc286d23dc /Source
parent8c10d98daf4bcd909a955574a37350f5ca98a48a (diff)
parent05f16ca7eefad41cbb8d6a973f47fe7c1a488ae5 (diff)
downloadCMake-afda647ac3d7776a38f3a290deb2a0912514fb83.zip
CMake-afda647ac3d7776a38f3a290deb2a0912514fb83.tar.gz
CMake-afda647ac3d7776a38f3a290deb2a0912514fb83.tar.bz2
Merge topic 'file-configure-endl'
05f16ca7ee file(CONFIGURE): Use text mode for default OUTPUT content Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Asit Dhal <dhal.asitk@gmail.com> Merge-request: !5762
Diffstat (limited to 'Source')
-rw-r--r--Source/cmFileCommand.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 5eff789..031e0d7 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -3122,12 +3122,14 @@ bool HandleConfigureCommand(std::vector<std::string> const& args,
}
std::string newLineCharacters = "\n";
+ bool open_with_binary_flag = false;
if (newLineStyle.IsValid()) {
newLineCharacters = newLineStyle.GetCharacters();
+ open_with_binary_flag = true;
}
cmGeneratedFileStream fout;
- fout.Open(outputFile, false, true);
+ fout.Open(outputFile, false, open_with_binary_flag);
if (!fout) {
cmSystemTools::Error("Could not open file for write in copy operation " +
outputFile);