summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraSublimeTextGenerator.h
diff options
context:
space:
mode:
authorMorné Chamberlain <thefreeman.za@gmail.com>2012-10-18 20:54:19 (GMT)
committerMorné Chamberlain <thefreeman.za@gmail.com>2012-10-18 20:54:19 (GMT)
commit8670cbe1660acbb8abc638e29ed60a2e27c0716a (patch)
tree88de4d15e7fb73e883ff908790844009a5394e03 /Source/cmExtraSublimeTextGenerator.h
parentd022d4ec78bcb0d3be93479b514f5275703d9a30 (diff)
downloadCMake-8670cbe1660acbb8abc638e29ed60a2e27c0716a.zip
CMake-8670cbe1660acbb8abc638e29ed60a2e27c0716a.tar.gz
CMake-8670cbe1660acbb8abc638e29ed60a2e27c0716a.tar.bz2
Define flags in CMAKE_C(XX)_FLAGS are now included in SublimeClang settings.
Changed the the SublimeText2 generator name to Sublime Text 2. Fixed a minor issue where if the build directory was outside of the source directory an unnecessary folder_exclude_pattern was generated in the Sublime Text 2 project file.
Diffstat (limited to 'Source/cmExtraSublimeTextGenerator.h')
-rw-r--r--Source/cmExtraSublimeTextGenerator.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmExtraSublimeTextGenerator.h b/Source/cmExtraSublimeTextGenerator.h
index 05ab421..1735b75 100644
--- a/Source/cmExtraSublimeTextGenerator.h
+++ b/Source/cmExtraSublimeTextGenerator.h
@@ -31,7 +31,7 @@ public:
virtual const char* GetName() const
{ return cmExtraSublimeTextGenerator::GetActualName();}
static const char* GetActualName()
- { return "SublimeText2";}
+ { return "Sublime Text 2";}
static cmExternalMakefileProjectGenerator* New()
{ return new cmExtraSublimeTextGenerator; }
/** Get the documentation entry for this generator. */
@@ -69,7 +69,9 @@ private:
const char* compiler,
std::set<std::string>& includeDirs,
std::set<std::string>& defines, bool firstTarget);
-
+ /** Extracts -D compile flags from a variable */
+ void ExtractDefines(const char* value, bool check,
+ std::set<std::string> &defines);
};
#endif