summaryrefslogtreecommitdiff
path: root/Source/cmConditionEvaluator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-11 12:52:14 +0200
committerBrad King <brad.king@kitware.com>2015-04-15 11:43:49 -0400
commit0aec49132885be07e1d92a4a1db58f4c6c4c2844 (patch)
treeba5db3057c7431795a8aa9762f0cfbc5f252e406 /Source/cmConditionEvaluator.cxx
parent96f8c5f9a3bd60f553af054b43e06ce4864269e0 (diff)
downloadcmake-0aec49132885be07e1d92a4a1db58f4c6c4c2844.tar.gz
Port cmCommand consumers to cmState.
Diffstat (limited to 'Source/cmConditionEvaluator.cxx')
-rw-r--r--Source/cmConditionEvaluator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmConditionEvaluator.cxx b/Source/cmConditionEvaluator.cxx
index eb4f3a1313..0a71c60a67 100644
--- a/Source/cmConditionEvaluator.cxx
+++ b/Source/cmConditionEvaluator.cxx
@@ -481,8 +481,10 @@ bool cmConditionEvaluator::HandleLevel1(cmArgumentList &newArgs,
// does a command exist
if (this->IsKeyword("COMMAND", *arg) && argP1 != newArgs.end())
{
+ cmCommand* command =
+ this->Makefile.GetState()->GetCommand(argP1->c_str());
this->HandlePredicate(
- this->Makefile.CommandExists(argP1->c_str()),
+ command ? true : false,
reducible, arg, newArgs, argP1, argP2);
}
// does a policy exist