ENH: Do not search for X11 if it is already found.
This commit is contained in:
parent
f26a0302be
commit
6207dc41bd
|
@ -95,7 +95,9 @@ ELSE (WIN32)
|
||||||
# It's not true on OSX.
|
# It's not true on OSX.
|
||||||
|
|
||||||
IF (OPENGL_gl_LIBRARY)
|
IF (OPENGL_gl_LIBRARY)
|
||||||
INCLUDE(FindX11)
|
IF(NOT X11_FOUND)
|
||||||
|
INCLUDE(FindX11)
|
||||||
|
ENDIF(NOT X11_FOUND)
|
||||||
IF (X11_FOUND)
|
IF (X11_FOUND)
|
||||||
IF (NOT APPLE)
|
IF (NOT APPLE)
|
||||||
SET (OPENGL_LIBRARIES ${X11_LIBRARIES})
|
SET (OPENGL_LIBRARIES ${X11_LIBRARIES})
|
||||||
|
|
Loading…
Reference in New Issue