summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraSublimeTextGenerator.cxx
diff options
context:
space:
mode:
authorMorné Chamberlain <thefreeman.za@gmail.com>2012-11-07 19:45:07 (GMT)
committerMorné Chamberlain <thefreeman.za@gmail.com>2012-11-07 19:45:07 (GMT)
commit5b2aa3dd9af903e7aae0a252d2119847ceac4aa0 (patch)
tree108b1c56e96691d6618462a699b9ec306380bfb8 /Source/cmExtraSublimeTextGenerator.cxx
parent90bcb77956464b53aaf2ce8d17b2a878f74ce27e (diff)
downloadCMake-5b2aa3dd9af903e7aae0a252d2119847ceac4aa0.zip
CMake-5b2aa3dd9af903e7aae0a252d2119847ceac4aa0.tar.gz
CMake-5b2aa3dd9af903e7aae0a252d2119847ceac4aa0.tar.bz2
SublimeText2 Gen: Fixed the issue where include directory flags used -D
Diffstat (limited to 'Source/cmExtraSublimeTextGenerator.cxx')
-rw-r--r--Source/cmExtraSublimeTextGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExtraSublimeTextGenerator.cxx b/Source/cmExtraSublimeTextGenerator.cxx
index 64796c8..279d9f4 100644
--- a/Source/cmExtraSublimeTextGenerator.cxx
+++ b/Source/cmExtraSublimeTextGenerator.cxx
@@ -361,7 +361,7 @@ void cmExtraSublimeTextGenerator::AppendTarget(cmGeneratedFileStream& fout,
ExtractFlags(cflags.c_str(), "-I", includeDirs);
cflags = makefile->GetSafeDefinition("CMAKE_C_FLAGS");
ExtractFlags(cflags.c_str(), "-D", defines);
- ExtractFlags(cflags.c_str(), "-D", includeDirs);
+ ExtractFlags(cflags.c_str(), "-I", includeDirs);
// the include directories for this target
std::vector<std::string> includes;
target->GetMakefile()->GetLocalGenerator()->