diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-04-13 16:35:26 -0400 |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-04-13 16:35:26 -0400 |
commit | 826405a1b668900ef4d5ecc0b676197e978bb80f (patch) | |
tree | ff388e4ea49a6368370e2d67de5486d0a4a7c7ae /Source/cmSourceFile.h | |
parent | 030dd4b91e4023ce73ae0c9ca675227202ed1e1b (diff) | |
download | cmake-826405a1b668900ef4d5ecc0b676197e978bb80f.tar.gz |
ENH: Speedup by storing source name without last extension
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r-- | Source/cmSourceFile.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h index ea78397526..c8ad1dd6b4 100644 --- a/Source/cmSourceFile.h +++ b/Source/cmSourceFile.h @@ -101,6 +101,11 @@ public: const std::vector<std::string> &GetDepends() const {return m_Depends;} std::vector<std::string> &GetDepends() {return m_Depends;} + /** + * Get the source name without last extension + */ + const std::string& GetSourceNameWithoutLastExtension(); + private: std::map<cmStdString,cmStdString> m_Properties; cmCustomCommand *m_CustomCommand; @@ -108,6 +113,7 @@ private: std::string m_SourceName; std::string m_SourceExtension; std::vector<std::string> m_Depends; + std::string m_SourceNameWithoutLastExtension; }; #endif |