summaryrefslogtreecommitdiff
path: root/Source/cmGetPropertyCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-12-26 12:45:44 +0100
committerStephen Kelly <steveire@gmail.com>2014-01-04 11:28:57 +0100
commitcd3d0b613e887eb64a7e5cb043f047ba02bdc58a (patch)
treea3d7a2d4ae794b19c2c2662f2e9cfe2820bdd6f0 /Source/cmGetPropertyCommand.cxx
parent6a622285a7c59a938921449d1ea00e28c8d906ac (diff)
downloadcmake-cd3d0b613e887eb64a7e5cb043f047ba02bdc58a.tar.gz
get_property: Fix testing ALIASED_TARGET target property (#14670)
In the case where the argument is not an ALIAS, the variable should be set to a -NOTFOUND content.
Diffstat (limited to 'Source/cmGetPropertyCommand.cxx')
-rw-r--r--Source/cmGetPropertyCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGetPropertyCommand.cxx b/Source/cmGetPropertyCommand.cxx
index faba7cd35e..a1454a32d0 100644
--- a/Source/cmGetPropertyCommand.cxx
+++ b/Source/cmGetPropertyCommand.cxx
@@ -298,7 +298,7 @@ bool cmGetPropertyCommand::HandleTargetMode()
return this->StoreResult(target->GetName());
}
}
- return false;
+ return this->StoreResult((this->Variable + "-NOTFOUND").c_str());
}
if(cmTarget* target = this->Makefile->FindTargetToUse(this->Name.c_str()))
{