summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraSublimeTextGenerator.h
diff options
context:
space:
mode:
authorMorné Chamberlain <thefreeman.za@gmail.com>2012-10-10 23:01:13 (GMT)
committerMorné Chamberlain <thefreeman.za@gmail.com>2012-10-13 07:47:50 (GMT)
commit32f79024ba18df5016eb34c9f5fcc8708eaca83a (patch)
tree54a8a2e7fa02dff6527a7882a5de41f1ce101985 /Source/cmExtraSublimeTextGenerator.h
parentb8457ad18b7eac2998fdd29fbc295c1dadbbba42 (diff)
downloadCMake-32f79024ba18df5016eb34c9f5fcc8708eaca83a.zip
CMake-32f79024ba18df5016eb34c9f5fcc8708eaca83a.tar.gz
CMake-32f79024ba18df5016eb34c9f5fcc8708eaca83a.tar.bz2
Added some support for sublimeclang_options in the generated project file.
This adds -I include path flags and -D define flags for sublimeclang. The current problem with this is that these flags cannot be set per target (build_system in sublime text), it can only be set project wide. Currently all of the include paths and compiler definitions from ALL of the targets are used (with duplicates removed). This could be problematic in some cases (conflicting compiler definitions among targets).
Diffstat (limited to 'Source/cmExtraSublimeTextGenerator.h')
-rw-r--r--Source/cmExtraSublimeTextGenerator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmExtraSublimeTextGenerator.h b/Source/cmExtraSublimeTextGenerator.h
index 231cc90..b2d47d9 100644
--- a/Source/cmExtraSublimeTextGenerator.h
+++ b/Source/cmExtraSublimeTextGenerator.h
@@ -54,7 +54,8 @@ private:
const char* make,
const cmMakefile* makefile,
const char* compiler,
- bool firstTarget = true);
+ std::set<std::string>& includeDirs,
+ std::set<std::string>& defines, bool firstTarget);
};