cmGlobalVisualStudioGenerator: Fix compiling as C++20 in VS 2022

Adding missing narrow string conversion.
This commit is contained in:
Werner, Joerg
2022-10-20 15:59:24 +02:00
committed by Brad King
parent 63d28469cd
commit f3c918ef1b

View File

@@ -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;
}