From 381777f8669dd7308c91fea959e7ed6198802e22 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 25 Feb 2005 14:20:20 -0500 Subject: [PATCH] ENH: make sure header files are in the header file group --- Source/cmGlobalXCodeGenerator.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 94c8174414..361c6a0fe0 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -455,6 +455,7 @@ cmGlobalXCodeGenerator::CreateXCodeTargets(cmLocalGenerator* gen, std::vector &classes = l->second.GetSourceFiles(); // add all the sources std::vector externalObjFiles; + std::vector headerFiles; for(std::vector::iterator i = classes.begin(); i != classes.end(); ++i) { @@ -466,6 +467,10 @@ cmGlobalXCodeGenerator::CreateXCodeTargets(cmLocalGenerator* gen, { externalObjFiles.push_back(xsf); } + else if((*i)->GetPropertyAsBool("HEADER_FILE_ONLY")) + { + headerFiles.push_back(xsf); + } else { buildFiles->AddObject(xsf); @@ -477,6 +482,11 @@ cmGlobalXCodeGenerator::CreateXCodeTargets(cmLocalGenerator* gen, headerBuildPhase->AddAttribute("buildActionMask", this->CreateString("2147483647")); buildFiles = this->CreateObject(cmXCodeObject::OBJECT_LIST); + for(std::vector::iterator i = headerFiles.begin(); + i != headerFiles.end(); ++i) + { + buildFiles->AddObject(*i); + } headerBuildPhase->AddAttribute("files", buildFiles); headerBuildPhase->AddAttribute("runOnlyForDeploymentPostprocessing", this->CreateString("0"));