mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
cmGlobalGenerator::PrintCompilerAdvice: use cmProp as augment
This commit is contained in:
@@ -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 ";
|
||||
|
||||
@@ -550,7 +550,7 @@ protected:
|
||||
virtual bool CheckLanguages(std::vector<std::string> const& languages,
|
||||
cmMakefile* mf) const;
|
||||
virtual void PrintCompilerAdvice(std::ostream& os, std::string const& lang,
|
||||
const char* envVar) const;
|
||||
cmProp envVar) const;
|
||||
|
||||
virtual bool ComputeTargetDepends();
|
||||
|
||||
|
||||
@@ -39,8 +39,9 @@ void cmGlobalJOMMakefileGenerator::GetDocumentation(
|
||||
entry.Brief = "Generates JOM makefiles.";
|
||||
}
|
||||
|
||||
void cmGlobalJOMMakefileGenerator::PrintCompilerAdvice(
|
||||
std::ostream& os, std::string const& lang, const char* envVar) const
|
||||
void cmGlobalJOMMakefileGenerator::PrintCompilerAdvice(std::ostream& os,
|
||||
std::string const& lang,
|
||||
cmProp envVar) const
|
||||
{
|
||||
if (lang == "CXX" || lang == "C") {
|
||||
/* clang-format off */
|
||||
|
||||
@@ -50,5 +50,5 @@ protected:
|
||||
|
||||
private:
|
||||
void PrintCompilerAdvice(std::ostream& os, std::string const& lang,
|
||||
const char* envVar) const override;
|
||||
cmProp envVar) const override;
|
||||
};
|
||||
|
||||
@@ -81,7 +81,7 @@ void cmGlobalNMakeMakefileGenerator::GetDocumentation(
|
||||
}
|
||||
|
||||
void cmGlobalNMakeMakefileGenerator::PrintCompilerAdvice(
|
||||
std::ostream& os, std::string const& lang, const char* envVar) const
|
||||
std::ostream& os, std::string const& lang, cmProp envVar) const
|
||||
{
|
||||
if (lang == "CXX" || lang == "C") {
|
||||
/* clang-format off */
|
||||
|
||||
@@ -61,5 +61,5 @@ private:
|
||||
void CheckNMakeFeatures();
|
||||
|
||||
void PrintCompilerAdvice(std::ostream& os, std::string const& lang,
|
||||
const char* envVar) const override;
|
||||
cmProp envVar) const override;
|
||||
};
|
||||
|
||||
@@ -201,7 +201,7 @@ protected:
|
||||
private:
|
||||
virtual std::string GetVSMakeProgram() = 0;
|
||||
void PrintCompilerAdvice(std::ostream&, std::string const&,
|
||||
const char*) const override
|
||||
cmProp) const override
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -327,7 +327,7 @@ private:
|
||||
bool XcodeBuildCommandInitialized;
|
||||
|
||||
void PrintCompilerAdvice(std::ostream&, std::string const&,
|
||||
const char*) const override
|
||||
cmProp) const override
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user