summaryrefslogtreecommitdiffstats
path: root/Source/cmTargetPropCommandBase.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-01-30 14:38:52 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-01-30 14:38:52 (GMT)
commitda2b0245a380282892be8007f4c3d184a91bcfe0 (patch)
treeee9c9236f472bc2ec09f22b4c04854c0908cb019 /Source/cmTargetPropCommandBase.h
parent7462a8a8c3417e559e54d6de7eef837e2adfd2e6 (diff)
parent7bf490e9bb6128082aa178f28691b3fc418322fe (diff)
downloadCMake-da2b0245a380282892be8007f4c3d184a91bcfe0.zip
CMake-da2b0245a380282892be8007f4c3d184a91bcfe0.tar.gz
CMake-da2b0245a380282892be8007f4c3d184a91bcfe0.tar.bz2
Merge topic 'fix-target-property-commands'
7bf490e Make subclasses responsible for joining content. f6b16d4 Don't allow targets args in the new target commands. b3a7e19 Make the Property name protected so that subclasses can use it.
Diffstat (limited to 'Source/cmTargetPropCommandBase.h')
-rw-r--r--Source/cmTargetPropCommandBase.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/Source/cmTargetPropCommandBase.h b/Source/cmTargetPropCommandBase.h
index 15a78c9..a5b4ff8 100644
--- a/Source/cmTargetPropCommandBase.h
+++ b/Source/cmTargetPropCommandBase.h
@@ -31,27 +31,24 @@ public:
bool HandleArguments(std::vector<std::string> const& args,
const char *prop, ArgumentFlags flags = NO_FLAGS);
+protected:
+ std::string Property;
+ cmTarget *Target;
+
private:
virtual void HandleImportedTarget(const std::string &tgt) = 0;
virtual void HandleMissingTarget(const std::string &name) = 0;
- virtual bool HandleNonTargetArg(std::string &content,
- const std::string &sep,
- const std::string &entry,
- const std::string &tgt) = 0;
-
virtual void HandleDirectContent(cmTarget *tgt,
- const std::string &content,
+ const std::vector<std::string> &content,
bool prepend) = 0;
+ virtual std::string Join(const std::vector<std::string> &content) = 0;
bool ProcessContentArgs(std::vector<std::string> const& args,
unsigned int &argIndex, bool prepend);
void PopulateTargetProperies(const std::string &scope,
- const std::string &content, bool prepend);
-
-private:
- cmTarget *Target;
- std::string Property;
+ const std::vector<std::string> &content,
+ bool prepend);
};
#endif