Make subclasses responsible for joining content.

This way we can add handling of relative/absolute paths and of
-D in compile definitions.
This commit is contained in:
Stephen Kelly
2013-01-29 17:23:31 +01:00
parent f6b16d4b06
commit 7bf490e9bb
11 changed files with 89 additions and 18 deletions
+5 -5
View File
@@ -33,22 +33,22 @@ public:
protected:
std::string Property;
cmTarget *Target;
private:
virtual void HandleImportedTarget(const std::string &tgt) = 0;
virtual void HandleMissingTarget(const std::string &name) = 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;
const std::vector<std::string> &content,
bool prepend);
};
#endif