mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-25 01:28:50 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user