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

Reply via email to