Skip to content
Snippets Groups Projects
Commit 11531404 authored by OTB Bot's avatar OTB Bot
Browse files

MAJ option LINKER pour les pb de doublon link avec OpenGL sous MAC

parent a4c3ccb6
No related branches found
No related tags found
No related merge requests found
......@@ -160,6 +160,13 @@ SET(CFILES
vsnprintf.c
)
# To suppress "ld: cycle in dylib re-exports with /usr/X11R6/lib/libGL.dylib" error on APPLE and SHARED configuration
IF(APPLE AND BUILD_SHARED_LIBS)
FOREACH(c "" "_DEBUG" "_RELEASE" "_MINSIZEREL" "_RELWITHDEBINFO")
SET(CMAKE_SHARED_LINKER_FLAGS${c} "${CMAKE_SHARED_LINKER_FLAGS${c}} -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib")
ENDFOREACH(c)
ENDIF(APPLE AND BUILD_SHARED_LIBS)
ADD_LIBRARY(fltk ${CPPFILES} ${CFILES})
INSTALL(TARGETS fltk
RUNTIME DESTINATION ${OTB_INSTALL_BIN_DIR} COMPONENT RuntimeLibraries
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment