cmGeneratorTarget: Implement cmTargetPropertyComputer interface

Populate a local member for the sources property when the instance is
created.  Pass the parameter to avoid the policy check when doing so.
Ordinarily, the GetSources function should not be called unconditionally
(at generate time), but we need to do so here in case the property is
read in a generator expression.  The intent is to be able to implement
cmGeneratorTarget without requiring cmTarget.
This commit is contained in:
Stephen Kelly
2016-10-13 00:18:26 +02:00
parent 848ae2a663
commit fa9dbc56a1
2 changed files with 40 additions and 0 deletions
+2
View File
@@ -532,6 +532,8 @@ public:
std::string GetFortranModuleDirectory(std::string const& working_dir) const;
const char* GetSourcesProperty() const;
private:
void AddSourceCommon(const std::string& src);