summaryrefslogtreecommitdiffstats
path: root/Source/cmTargetPropCommandBase.cxx
diff options
context:
space:
mode:
authorAsit Dhal <dhal.asitk@gmail.com>2020-12-19 12:44:35 (GMT)
committerAsit Dhal <dhal.asitk@gmail.com>2020-12-19 13:51:39 (GMT)
commitb68699b71799762812fd58a6f257bc7cc9820761 (patch)
tree6692ccde6094d379de31bc0f531658a8b0461f6c /Source/cmTargetPropCommandBase.cxx
parentd231f429f10e920e08607a7371f6f7e7e17aa93b (diff)
downloadCMake-b68699b71799762812fd58a6f257bc7cc9820761.zip
CMake-b68699b71799762812fd58a6f257bc7cc9820761.tar.gz
CMake-b68699b71799762812fd58a6f257bc7cc9820761.tar.bz2
target_include_directories: Support AFTER option
Fixes: #20134
Diffstat (limited to 'Source/cmTargetPropCommandBase.cxx')
-rw-r--r--Source/cmTargetPropCommandBase.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmTargetPropCommandBase.cxx b/Source/cmTargetPropCommandBase.cxx
index b050a58..e41714a 100644
--- a/Source/cmTargetPropCommandBase.cxx
+++ b/Source/cmTargetPropCommandBase.cxx
@@ -87,6 +87,13 @@ bool cmTargetPropCommandBase::HandleArguments(
}
prepend = true;
++argIndex;
+ } else if ((flags & PROCESS_AFTER) && args[argIndex] == "AFTER") {
+ if (args.size() < 3) {
+ this->SetError("called with incorrect number of arguments");
+ return false;
+ }
+ prepend = false;
+ ++argIndex;
}
if ((flags & PROCESS_REUSE_FROM) && args[argIndex] == "REUSE_FROM") {