Support of OPTION_APPLE_X11 by CMake: do not use hard-coded paths
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11125 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
f057cca22b
commit
254cb01f54
@ -129,9 +129,12 @@ endif(HAVE_GL)
|
||||
|
||||
if(OPTION_USE_GL)
|
||||
if(OPTION_APPLE_X11)
|
||||
set(OPENGL_LIBRARIES /opt/X11/lib/libGL.dylib /opt/X11/lib/libGLU.dylib)
|
||||
endif(OPTION_APPLE_X11)
|
||||
set(OPENGL_FOUND TRUE)
|
||||
get_filename_component(PATH_TO_XLIBS ${X11_X11_LIB} PATH)
|
||||
set(OPENGL_LIBRARIES -L${PATH_TO_XLIBS} -lGLU -lGL)
|
||||
else()
|
||||
include(FindOpenGL)
|
||||
endif(OPTION_APPLE_X11)
|
||||
endif(OPTION_USE_GL)
|
||||
|
||||
if(OPENGL_FOUND)
|
||||
|
Loading…
Reference in New Issue
Block a user