[CMake] Adding linker options

Eric Sokolowsky esok.osg at gmail.com
Thu Jun 12 00:03:24 EDT 2008


I am new to cmake. I'm trying to add a particular linker flag to a
particular project. I tried to use the following:
IF (APPLE)
    SET(LINKER_FLAGS "${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 the flag does not appear in the .xcodeproj file that's generated. Any
suggestions?

-Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080611/80494109/attachment-0001.htm>


More information about the CMake mailing list