summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeBlocksGenerator.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-10-17 20:44:53 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-10-17 20:44:53 (GMT)
commitf3b8049884354e166249f40c15df5a4907ace4ac (patch)
tree8cf89afdbdafcb2ba4b18ace2c87b4665db0b6ad /Source/cmExtraCodeBlocksGenerator.cxx
parent982905c0d23aded548718cf64665002cac350e77 (diff)
parent2a6bd96c1354484b4f9e71d11422f8da028c1622 (diff)
downloadCMake-f3b8049884354e166249f40c15df5a4907ace4ac.zip
CMake-f3b8049884354e166249f40c15df5a4907ace4ac.tar.gz
CMake-f3b8049884354e166249f40c15df5a4907ace4ac.tar.bz2
Merge topic 'fix-INCLUDE_DIRECTORIES-multiconfig'
2a6bd96 Fix config-specific INCLUDE_DIRECTORIES in multi-config generators
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r--Source/cmExtraCodeBlocksGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
index 00e1abc..25b13e5 100644
--- a/Source/cmExtraCodeBlocksGenerator.cxx
+++ b/Source/cmExtraCodeBlocksGenerator.cxx
@@ -640,8 +640,10 @@ void cmExtraCodeBlocksGenerator::AppendTarget(cmGeneratedFileStream& fout,
std::set<std::string> uniqIncludeDirs;
std::vector<std::string> includes;
+ const char *config = target->GetMakefile()
+ ->GetDefinition("CMAKE_BUILD_TYPE");
target->GetMakefile()->GetLocalGenerator()->
- GetIncludeDirectories(includes, gtgt);
+ GetIncludeDirectories(includes, gtgt, "C", config);
for(std::vector<std::string>::const_iterator dirIt=includes.begin();
dirIt != includes.end();
++dirIt)