mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-28 11:48:36 -06:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user