summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorWerner, Joerg <dr.joerg.werner@gmail.com>2022-10-20 13:59:24 (GMT)
committerBrad King <brad.king@kitware.com>2022-10-21 15:01:16 (GMT)
commitf3c918ef1b190c5d05bcae1bd6ef60d5ffd7281e (patch)
treeaccc8bdc458fcef2721721fe1262432d9b7d7d6f /Source/cmGlobalVisualStudioGenerator.cxx
parent63d28469cdfa24848f8374a9f77da92360b90898 (diff)
downloadCMake-f3c918ef1b190c5d05bcae1bd6ef60d5ffd7281e.zip
CMake-f3c918ef1b190c5d05bcae1bd6ef60d5ffd7281e.tar.gz
CMake-f3c918ef1b190c5d05bcae1bd6ef60d5ffd7281e.tar.bz2
cmGlobalVisualStudioGenerator: Fix compiling as C++20 in VS 2022
Adding missing narrow string conversion.
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index deed3f8..9d168d0 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -620,7 +620,8 @@ bool IsVisualStudioMacrosFileRegistered(const std::string& macrosFile,
RegCloseKey(hsubkey);
} else {
- std::cout << "error opening subkey: " << subkeyname << std::endl;
+ std::cout << "error opening subkey: "
+ << cmsys::Encoding::ToNarrow(subkeyname) << std::endl;
std::cout << std::endl;
}