For the archive:
The key to this problem is using CMAKE_MODULE_LINKER_FLAGS, as in this
snippet:
if(APPLE)
SET(CMAKE_MODULE_LINKER_FLAGS "-dylib_file
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib")
endif(APPLE)
Thanks to Stephen Hubert and Paul Martz for this fix.
-Eric
On Thu, Jun 12, 2008 at 7:36 AM, Eric Sokolowsky <[EMAIL PROTECTED]> wrote:
> Stephen,
> I have been working with Eric Wing here at WWDC to improve the CMake
> generator for Xcode when compiling OSG. I noticed your question on the OSG
> mailing lists:
>
> >* I need some CMake-advice. I found a solution for the linker-error, I*>*
> >have to add*>*
> >-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:$(SDKROOT)/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib*>*
> > to*>* OTHER_LDFLAGS, then xcode compiles the osgdb_freetype plugin.*>**>*
> > But how do I add this option into the CMakeLists.txt-file? I tried*>**>* #
> >bugfix for leopard linker bug picking the wrong libgl-lib*>* IF(APPLE)*>*
> > SET(CMAKE_SHARED_LINKER_FLAGS,"${CMAKE_SHARED_LINKER_FLAGS}*>*
> >-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib")*>*
> > ENDIF(APPLE)*>**>* but this does not work. The OTHER_LDFLAGS remains
> >untouched.*>**>**>* Can somebody help me here, I looked over the CMake docs
> >but could not*>* find any suitable information...*
>
> Did you find a solution? I tried a very similar change that also didn't
> work. I tried the variable you had above, and I also tried setting
> LINK_FLAGS and that didn't work either.
>
> -Eric
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org