summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-08-01 12:52:35 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-08-01 12:52:35 (GMT)
commita26e7d0782dbe0cd2e7958419212e534439245c9 (patch)
treee57467acb23ea7d7d897035ba4e620fb72d5d994 /Source
parentf0f7ee0adf0887cdb0460ef6afda7615c36fcdbf (diff)
parentc0b868220084ad6d2ca88a4fdd9564f887374fc2 (diff)
downloadCMake-a26e7d0782dbe0cd2e7958419212e534439245c9.zip
CMake-a26e7d0782dbe0cd2e7958419212e534439245c9.tar.gz
CMake-a26e7d0782dbe0cd2e7958419212e534439245c9.tar.bz2
Merge topic 'target-command-allow-no-items'
c0b8682 Allow target commands to be invoked with no items (#14325).
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTargetPropCommandBase.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmTargetPropCommandBase.cxx b/Source/cmTargetPropCommandBase.cxx
index 287ce46..37aa604 100644
--- a/Source/cmTargetPropCommandBase.cxx
+++ b/Source/cmTargetPropCommandBase.cxx
@@ -19,7 +19,7 @@ bool cmTargetPropCommandBase
::HandleArguments(std::vector<std::string> const& args, const char *prop,
ArgumentFlags flags)
{
- if(args.size() < 3)
+ if(args.size() < 2)
{
this->SetError("called with incorrect number of arguments");
return false;
@@ -53,7 +53,7 @@ bool cmTargetPropCommandBase
if ((flags & PROCESS_SYSTEM) && args[argIndex] == "SYSTEM")
{
- if (args.size() < 4)
+ if (args.size() < 3)
{
this->SetError("called with incorrect number of arguments");
return false;
@@ -65,7 +65,7 @@ bool cmTargetPropCommandBase
bool prepend = false;
if ((flags & PROCESS_BEFORE) && args[argIndex] == "BEFORE")
{
- if (args.size() < 4)
+ if (args.size() < 3)
{
this->SetError("called with incorrect number of arguments");
return false;