summaryrefslogtreecommitdiffstats
path: root/Source/cmFLTKWrapUICommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-01-20 11:28:59 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-01-21 08:12:22 (GMT)
commit0d46e9a0297d78dabc9988604a15c0096c702855 (patch)
tree1f948251b0c737c1bb31ddd81a592936669b83a0 /Source/cmFLTKWrapUICommand.cxx
parent5e572619c67c5ba38a68179111f7dea9648690ab (diff)
downloadCMake-0d46e9a0297d78dabc9988604a15c0096c702855.zip
CMake-0d46e9a0297d78dabc9988604a15c0096c702855.tar.gz
CMake-0d46e9a0297d78dabc9988604a15c0096c702855.tar.bz2
Store includes from the same include_directories call together.
Otherwise, we get a separate IncludeDirectoriesEntry for each include, and that causes unnecessary and confusing splitting in the output when debugging the INCLUDE_DIRECTORIES property.
Diffstat (limited to 'Source/cmFLTKWrapUICommand.cxx')
-rw-r--r--Source/cmFLTKWrapUICommand.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmFLTKWrapUICommand.cxx b/Source/cmFLTKWrapUICommand.cxx
index a4aa75a..b08c335 100644
--- a/Source/cmFLTKWrapUICommand.cxx
+++ b/Source/cmFLTKWrapUICommand.cxx
@@ -37,9 +37,13 @@ bool cmFLTKWrapUICommand
// get the list of GUI files from which .cxx and .h will be generated
std::string outputDirectory = this->Makefile->GetCurrentOutputDirectory();
+ {
// Some of the generated files are *.h so the directory "GUI"
// where they are created have to be added to the include path
- this->Makefile->AddIncludeDirectory( outputDirectory.c_str() );
+ std::vector<std::string> outputDirectories;
+ outputDirectories.push_back(outputDirectory);
+ this->Makefile->AddIncludeDirectories( outputDirectories );
+ }
for(std::vector<std::string>::iterator i = (newArgs.begin() + 1);
i != newArgs.end(); i++)