diff options
author | Werner, Joerg <dr.joerg.werner@gmail.com> | 2022-10-20 13:59:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-11-14 17:07:16 (GMT) |
commit | a394c9416de7c2e56efb762a30ee89da769f5ca7 (patch) | |
tree | 492e1d87370acff582deb4912b6586a4fba2061c | |
parent | 91ccfa330240ccd9766f59d9efcac595c4a1b033 (diff) | |
download | CMake-a394c9416de7c2e56efb762a30ee89da769f5ca7.zip CMake-a394c9416de7c2e56efb762a30ee89da769f5ca7.tar.gz CMake-a394c9416de7c2e56efb762a30ee89da769f5ca7.tar.bz2 |
cmGlobalVisualStudioGenerator: Fix compiling as C++20 in VS 2022
Adding missing narrow string conversion.
This backports commit f3c918ef1b (cmGlobalVisualStudioGenerator: Fix
compiling as C++20 in VS 2022, 2022-10-20, v3.25.0-rc3~31^2) to the
CMake 3.23 and 3.24 branches.
Fixes: #24162
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index 141b5eb..57ced0f 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -630,7 +630,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; } |