diff options
author | Brad King <brad.king@kitware.com> | 2020-05-19 12:21:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-19 12:24:37 (GMT) |
commit | 88ad02f1ec012e69e446aa70064cffb9c33b8a8e (patch) | |
tree | 80590a59dd80f6ef08b8c446ec3ac2070e758149 /Source/cmGlobalVisualStudioGenerator.cxx | |
parent | 4c82f309c59d02899145bc25c0e9efc91a6f64ed (diff) | |
download | CMake-88ad02f1ec012e69e446aa70064cffb9c33b8a8e.zip CMake-88ad02f1ec012e69e446aa70064cffb9c33b8a8e.tar.gz CMake-88ad02f1ec012e69e446aa70064cffb9c33b8a8e.tar.bz2 |
VS: Restore .sln support for VS Version Selector
Since commit 3b51343ea1 (VS: Emit UTF-8 BOM for generated solution files,
2019-08-19, v3.16.0-rc1~237^2) the `.sln` file does not work with the
VS Version Selector. Add a newline after the BOM to restore support.
Fixes: #20725
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index ed0cba7..c083a75 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -111,6 +111,7 @@ void cmGlobalVisualStudioGenerator::WriteSLNHeader(std::ostream& fout) { char utf8bom[] = { char(0xEF), char(0xBB), char(0xBF) }; fout.write(utf8bom, 3); + fout << '\n'; switch (this->Version) { case cmGlobalVisualStudioGenerator::VS9: |