diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-02-25 19:20:20 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-02-25 19:20:20 (GMT) |
commit | 381777f8669dd7308c91fea959e7ed6198802e22 (patch) | |
tree | 32353b7a2adfa40ccf4c590c2b9db00bd929659c /Source/cmGlobalXCodeGenerator.cxx | |
parent | d18722a2126e9c97b0de2fbe2eb2e417e0537e6c (diff) | |
download | CMake-381777f8669dd7308c91fea959e7ed6198802e22.zip CMake-381777f8669dd7308c91fea959e7ed6198802e22.tar.gz CMake-381777f8669dd7308c91fea959e7ed6198802e22.tar.bz2 |
ENH: make sure header files are in the header file group
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 94c8174..361c6a0 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -455,6 +455,7 @@ cmGlobalXCodeGenerator::CreateXCodeTargets(cmLocalGenerator* gen, std::vector<cmSourceFile*> &classes = l->second.GetSourceFiles(); // add all the sources std::vector<cmXCodeObject*> externalObjFiles; + std::vector<cmXCodeObject*> headerFiles; for(std::vector<cmSourceFile*>::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<cmXCodeObject*>::iterator i = headerFiles.begin(); + i != headerFiles.end(); ++i) + { + buildFiles->AddObject(*i); + } headerBuildPhase->AddAttribute("files", buildFiles); headerBuildPhase->AddAttribute("runOnlyForDeploymentPostprocessing", this->CreateString("0")); |