diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-10-12 22:18:26 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-10-15 09:14:21 (GMT) |
commit | fa9dbc56a15aec71ac2eda7890efd0116797f373 (patch) | |
tree | 21fbf0e013ec0e574b5e29792267e0751e6b1abb /Source/cmGeneratorTarget.h | |
parent | 848ae2a663ef83e059561d94b33d551154642231 (diff) | |
download | CMake-fa9dbc56a15aec71ac2eda7890efd0116797f373.zip CMake-fa9dbc56a15aec71ac2eda7890efd0116797f373.tar.gz CMake-fa9dbc56a15aec71ac2eda7890efd0116797f373.tar.bz2 |
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.
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r-- | Source/cmGeneratorTarget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h index bfbd790..15e46b8 100644 --- a/Source/cmGeneratorTarget.h +++ b/Source/cmGeneratorTarget.h @@ -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); |