ENH: Do not search for X11 if it is already found.

This commit is contained in:
Brad King 2006-06-19 10:07:44 -04:00
parent f26a0302be
commit 6207dc41bd
1 changed files with 3 additions and 1 deletions

View File

@ -95,7 +95,9 @@ ELSE (WIN32)
# It's not true on OSX.
IF (OPENGL_gl_LIBRARY)
INCLUDE(FindX11)
IF(NOT X11_FOUND)
INCLUDE(FindX11)
ENDIF(NOT X11_FOUND)
IF (X11_FOUND)
IF (NOT APPLE)
SET (OPENGL_LIBRARIES ${X11_LIBRARIES})