View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007046CMakeCMakepublic2008-05-19 00:072008-09-08 17:56
ReporterEric Wing 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0007046: OS X Framework support: extensionless headers are being ignored when specified as public headers
DescriptionIt seems that extensionless files we want to mark as Public Headers are not getting marked/copied as headers when generating an Xcode project. (OpenSceneGraph has this really annoying thing where they use extensionless headers for everything public.) In the Xcode generator, they seem to get grouped into the Resources group in the Xcode project instead of the Headers group, though they are not copied into the Resources part of the bundle (which is correct). I know Xcode does this by default itself when you first manually add the extensionless files, so I know Xcode isn't a fan of this either. But I know Xcode can handle this case, which involves dragging the files to the correct sections, including the Copy Headers Build Phase of the target and then marking everything public. The Makefile generator doesn't seem to have this problem.

Presumably, the PrivateHeaders also needs to be fixed.

Attached is an example. I've modified Lua to build as a framework. I've added a dummy extensionlesss file as a public header.

TagsNo tags attached.
Attached Filesgz file icon lua.tar.gz [^] (217,879 bytes) 2008-05-19 00:07

 Relationships

  Notes
(0013311)
David Cole (manager)
2008-09-05 14:54

Even if not in 2.6.2, at least merge it over to the CMake-2-6 branch when you're ready...
(0013309)
David Cole (manager)
2008-09-05 15:52

Fixed in CVS HEAD:

$ cvs commit -m "BUG: Fix issue 0007046 - make sure extensionless headers and resource files work with the Xcode generator. Also fix incorrect mappings in the lastKnownFileType code. Add some extensionless files to the Framework test." Source/cmGlobalXCodeGenerator.cxx Tests/Framework/CMakeLists.txt Tests/Framework/fooExtensionlessResource Tests/Framework/fooPublicExtensionlessHeader Tests/Framework/fooPrivateExtensionlessHeader

    /cvsroot/CMake/CMake/Source/cmGlobalXCodeGenerator.cxx,v <-- Source/cmGlobalXCodeGenerator.cxx
    new revision: 1.199; previous revision: 1.198
    /cvsroot/CMake/CMake/Tests/Framework/CMakeLists.txt,v <-- Tests/Framework/CMakeLists.txt
    new revision: 1.12; previous revision: 1.11
    /cvsroot/CMake/CMake/Tests/Framework/fooExtensionlessResource,v <-- Tests/Framework/fooExtensionlessResource
    initial revision: 1.1
    /cvsroot/CMake/CMake/Tests/Framework/fooPublicExtensionlessHeader,v <-- Tests/Framework/fooPublicExtensionlessHeader
    initial revision: 1.1
    /cvsroot/CMake/CMake/Tests/Framework/fooPrivateExtensionlessHeader,v <-- Tests/Framework/fooPrivateExtensionlessHeader
    initial revision: 1.1
(0013310)
David Cole (manager)
2008-09-05 15:53

Any chance of squeezing this one into CMake 2.6.2...?


 Issue History
Date Modified Username Field Change
2008-05-19 00:07 Eric Wing New Issue
2008-05-19 00:07 Eric Wing File Added: lua.tar.gz
2008-08-19 15:55 Bill Hoffman Status new => assigned
2008-08-19 15:55 Bill Hoffman Assigned To => David Cole
2008-09-05 14:54 David Cole Note Added: 0013311
2008-09-05 15:52 David Cole Note Added: 0013309
2008-09-05 15:52 David Cole Status assigned => resolved
2008-09-05 15:52 David Cole Resolution open => fixed
2008-09-05 15:53 David Cole Note Added: 0013310
2008-09-05 15:53 David Cole Assigned To David Cole => Bill Hoffman
2008-09-05 15:53 David Cole Status resolved => assigned
2008-09-08 17:56 Bill Hoffman Status assigned => closed


Copyright © 2000 - 2018 MantisBT Team