diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 6b019e97ca..ee630bce98 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -1489,11 +1489,11 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target, std::string dirs; std::vector includes; this->CurrentLocalGenerator->GetIncludeDirectories(includes); - std::vector::iterator i = includes.begin(); std::string fdirs; std::set emitted; emitted.insert("/System/Library/Frameworks"); - for(;i != includes.end(); ++i) + for(std::vector::iterator i = includes.begin(); + i != includes.end(); ++i) { if(cmSystemTools::IsPathToFramework(i->c_str())) {