summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@users.noreply.gitlab.com>2023-01-15 15:13:14 (GMT)
committerVitaly Stakhovsky <vvs31415@users.noreply.gitlab.com>2023-01-16 04:39:02 (GMT)
commitb3edfcf46ec1514a376d4e3dca7538cc750844d5 (patch)
treec5a26d80efd9bbeb2783d8e6508097a2d9ee0b09 /Source/cmGlobalGenerator.cxx
parent701badbd20a33d8f955cb6d86016d5bf415b8212 (diff)
downloadCMake-b3edfcf46ec1514a376d4e3dca7538cc750844d5.zip
CMake-b3edfcf46ec1514a376d4e3dca7538cc750844d5.tar.gz
CMake-b3edfcf46ec1514a376d4e3dca7538cc750844d5.tar.bz2
cmValue: Use operator* explicitly to convert to std::string; avoid extra call
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 8ca6ee6..40234b1 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -947,7 +947,7 @@ void cmGlobalGenerator::PrintCompilerAdvice(std::ostream& os,
// Subclasses override this method if they do not support this advice.
os << "Tell CMake where to find the compiler by setting ";
if (envVar) {
- os << "either the environment variable \"" << envVar << "\" or ";
+ os << "either the environment variable \"" << *envVar << "\" or ";
}
os << "the CMake cache entry CMAKE_" << lang
<< "_COMPILER "