SublimeText2 Gen: Fixed the issue where include directory flags used -D

This commit is contained in:
Morné Chamberlain 2012-11-07 21:45:07 +02:00
parent 90bcb77956
commit 5b2aa3dd9a
1 changed files with 1 additions and 1 deletions

View File

@ -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()->