diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-04 19:14:41 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-03-04 19:14:41 (GMT) |
commit | 076aafe79ad6272c5de826394ef4d2c872257cbe (patch) | |
tree | 5e031706fecc400e6543070ffb599a4a64b8be68 /Source/cmSourceFile.h | |
parent | 42c56a7cc7f4a8c301b04d55be86195ab8ac4339 (diff) | |
download | CMake-076aafe79ad6272c5de826394ef4d2c872257cbe.zip CMake-076aafe79ad6272c5de826394ef4d2c872257cbe.tar.gz CMake-076aafe79ad6272c5de826394ef4d2c872257cbe.tar.bz2 |
ENH: add file specific compile flags
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r-- | Source/cmSourceFile.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h index 7287882..0f975c0 100644 --- a/Source/cmSourceFile.h +++ b/Source/cmSourceFile.h @@ -107,10 +107,14 @@ public: const std::vector<std::string> &GetDepends() const {return m_Depends;} std::vector<std::string> &GetDepends() {return m_Depends;} + ///! Set/Get per file compiler flags + void SetCompileFlags(const char* f) { m_CompileFlags = f;} + const char* GetCompileFlags() const { return m_CompileFlags.size() ? m_CompileFlags.c_str(): 0; } private: bool m_AbstractClass; bool m_WrapExclude; bool m_HeaderFileOnly; + std::string m_CompileFlags; std::string m_FullPath; std::string m_SourceName; std::string m_SourceExtension; |