diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-03-11 22:04:11 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2014-07-08 14:13:50 (GMT) |
commit | d2803fbac6ca20c998ff5364e79f0841eba6c579 (patch) | |
tree | 3367bc50946dc20bb1ba0dbcd3c3904b82a58833 /Source/cmMakefile.h | |
parent | 49c830d597bbd8322c7b41847eac3012064b0b7d (diff) | |
download | CMake-d2803fbac6ca20c998ff5364e79f0841eba6c579.zip CMake-d2803fbac6ca20c998ff5364e79f0841eba6c579.tar.gz CMake-d2803fbac6ca20c998ff5364e79f0841eba6c579.tar.bz2 |
cmMakefile: Add a CreateSource method
The GetOrCreateSource searches the source file listing again, but some
callers know that it already didn't exist.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index d5ffd98..3a40c1c 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -560,6 +560,13 @@ public: */ cmSourceFile* GetSource(const std::string& sourceName) const; + /** Create the source file and return it. generated + * indicates if it is a generated file, this is used in determining + * how to create the source file instance e.g. name + */ + cmSourceFile* CreateSource(const std::string& sourceName, + bool generated = false); + /** Get a cmSourceFile pointer for a given source name, if the name is * not found, then create the source file and return it. generated * indicates if it is a generated file, this is used in determining |