Support of OPTION_APPLE_X11 by CMake: do not use hard-coded paths

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2016-02-03 10:28:57 +00:00
parent dab925c1e9
commit 4592043ee2
+5 -4
View File
@@ -129,11 +129,12 @@ endif(HAVE_GL)
if(OPTION_USE_GL)
if(OPTION_APPLE_X11)
# find_library(OPENGL_gl_LIBRARY GL)
# find_library(OPENGL_glu_LIBRARY GLU)
set(OPENGL_LIBRARIES /opt/X11/lib/libGL.dylib /opt/X11/lib/libGLU.dylib)
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)
include(FindOpenGL)
endif(OPTION_USE_GL)
if(OPENGL_FOUND)