Yes, the Xcode generator seems to have problems. I have been playing
with the cmake source code and many things are hard-wired and not
configurable. There are settings documented that are handled in the
cmake code but don't seem to have any effect on the xcode project
generated (notably XCODE_ATTRIBUTE_<x>). Application bundles seem to
not be supported well with cmake unless you are doing really standard
things (which OSG is not).

I was also unable to build the cmake gui that can be downloaded from
the cmake web site with the xcode generator. It seems like that at
least should be possible.

And yes, doing this if(version) check around the ADD_DEFINITIONS seems
to be the only way it will work at all on the Mac with cmake 2.6.

-Eric

On 6/13/08, Jean-Sébastien Guay <[EMAIL PROTECTED]> wrote:
> Hi Eric,
>
>> I'm using this change (I'm using the latest svn) but it doesn't fix the
>> problem on OSX. I added a conditional around line 349 that checks the
>> version of cmake in use and that seems to solve the problem for me. I'm
>> attaching my CMakeLists.txt to this message if anyone wants to try it
>> out before I make a formal submission with it.
>
> I had tested the change myself too, and it did fix the problem on
> Windows and Linux too.
>
> My argument about scalability is just that this is the only line that
> needs this *for now*. If there are ever other ADD_DEFINITIONS lines that
> need internal quotes, we'll have to have a version check there too in
> order to escape the quotes for 2.4.x and not escape them for 2.6 (if we
> want to support both).
>
> But if it's the only solution on OSX, we'll live with it (even though it
> sounds like a bug in CMake's XCode generation more than anything else...).
>
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay    [EMAIL PROTECTED]
>                                 http://www.cm-labs.com/
>                          http://whitestar02.webhop.org/
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to