|
|
@@ -52,7 +52,7 @@
|
|
|
#include "cmake.h"
|
|
|
|
|
|
std::string cmGeneratorExpressionNode::EvaluateDependentExpression(
|
|
|
- std::string const& prop, cmLocalGenerator* lg,
|
|
|
+ std::string const& prop, cmLocalGenerator const* lg,
|
|
|
cmGeneratorExpressionContext* context, cmGeneratorTarget const* headTarget,
|
|
|
cmGeneratorExpressionDAGChecker* dagChecker,
|
|
|
cmGeneratorTarget const* currentTarget)
|
|
|
@@ -2337,7 +2337,7 @@ static const struct CompileLanguageNode : public cmGeneratorExpressionNode
|
|
|
return std::string();
|
|
|
}
|
|
|
|
|
|
- cmGlobalGenerator* gg = context->LG->GetGlobalGenerator();
|
|
|
+ cmGlobalGenerator const* gg = context->LG->GetGlobalGenerator();
|
|
|
std::string genName = gg->GetName();
|
|
|
if (genName.find("Makefiles") == std::string::npos &&
|
|
|
genName.find("Ninja") == std::string::npos &&
|
|
|
@@ -2387,7 +2387,7 @@ static const struct CompileLanguageAndIdNode : public cmGeneratorExpressionNode
|
|
|
"add_custom_target, or file(GENERATE) commands.");
|
|
|
return std::string();
|
|
|
}
|
|
|
- cmGlobalGenerator* gg = context->LG->GetGlobalGenerator();
|
|
|
+ cmGlobalGenerator const* gg = context->LG->GetGlobalGenerator();
|
|
|
std::string genName = gg->GetName();
|
|
|
if (genName.find("Makefiles") == std::string::npos &&
|
|
|
genName.find("Ninja") == std::string::npos &&
|
|
|
@@ -2441,7 +2441,7 @@ static const struct LinkLanguageNode : public cmGeneratorExpressionNode
|
|
|
return std::string();
|
|
|
}
|
|
|
|
|
|
- cmGlobalGenerator* gg = context->LG->GetGlobalGenerator();
|
|
|
+ cmGlobalGenerator const* gg = context->LG->GetGlobalGenerator();
|
|
|
std::string genName = gg->GetName();
|
|
|
if (genName.find("Makefiles") == std::string::npos &&
|
|
|
genName.find("Ninja") == std::string::npos &&
|
|
|
@@ -2532,7 +2532,7 @@ static const struct LinkLanguageAndIdNode : public cmGeneratorExpressionNode
|
|
|
return std::string();
|
|
|
}
|
|
|
|
|
|
- cmGlobalGenerator* gg = context->LG->GetGlobalGenerator();
|
|
|
+ cmGlobalGenerator const* gg = context->LG->GetGlobalGenerator();
|
|
|
std::string genName = gg->GetName();
|
|
|
if (genName.find("Makefiles") == std::string::npos &&
|
|
|
genName.find("Ninja") == std::string::npos &&
|
|
|
@@ -3149,7 +3149,7 @@ static const struct TargetObjectsNode : public cmGeneratorExpressionNode
|
|
|
reportError(context, content->GetOriginalExpression(), e.str());
|
|
|
return std::string();
|
|
|
}
|
|
|
- cmGlobalGenerator* gg = context->LG->GetGlobalGenerator();
|
|
|
+ cmGlobalGenerator const* gg = context->LG->GetGlobalGenerator();
|
|
|
{
|
|
|
std::string reason;
|
|
|
if (!context->EvaluateForBuildsystem &&
|
|
|
@@ -3523,7 +3523,7 @@ struct TargetFilesystemArtifactDependencyCMP0112
|
|
|
cmGeneratorExpressionContext* context)
|
|
|
{
|
|
|
context->AllTargets.insert(target);
|
|
|
- cmLocalGenerator* lg = context->LG;
|
|
|
+ cmLocalGenerator const* lg = context->LG;
|
|
|
switch (target->GetPolicyStatusCMP0112()) {
|
|
|
case cmPolicies::WARN:
|
|
|
if (lg->GetMakefile()->PolicyOptionalWarningEnabled(
|