Hi Robert,

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...

Stephan

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to