1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-15 20:46:37 +08:00

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
This commit is contained in:
Brad King
2020-05-19 08:21:26 -04:00
parent 4c82f309c5
commit 88ad02f1ec

View File

@@ -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: