summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-09-18 09:05:36 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2021-09-19 17:11:07 (GMT)
commitdffa3f485ce5a2336a7fd06c94522e53b0cab37e (patch)
tree8cbe526dc41e5f094129436f774042de9a184b52 /Source/cmGlobalGenerator.cxx
parent062432a6bc1f334f17200a88a04d3c8e02a4fd94 (diff)
downloadCMake-dffa3f485ce5a2336a7fd06c94522e53b0cab37e.zip
CMake-dffa3f485ce5a2336a7fd06c94522e53b0cab37e.tar.gz
CMake-dffa3f485ce5a2336a7fd06c94522e53b0cab37e.tar.bz2
cmGlobalGenerator::PrintCompilerAdvice: use cmProp as augment
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index fd1a197..1c3d2c2 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -838,7 +838,7 @@ void cmGlobalGenerator::EnableLanguage(
cmSystemTools::RemoveFile(compilerLangFile);
if (!this->CMakeInstance->GetIsInTryCompile()) {
this->PrintCompilerAdvice(noCompiler, lang,
- cmToCStr(mf->GetDefinition(compilerEnv)));
+ mf->GetDefinition(compilerEnv));
mf->IssueMessage(MessageType::FATAL_ERROR, noCompiler.str());
fatalError = true;
}
@@ -922,7 +922,7 @@ void cmGlobalGenerator::EnableLanguage(
void cmGlobalGenerator::PrintCompilerAdvice(std::ostream& os,
std::string const& lang,
- const char* envVar) const
+ cmProp envVar) const
{
// Subclasses override this method if they do not support this advice.
os << "Tell CMake where to find the compiler by setting ";