diff options
author | Brad King <brad.king@kitware.com> | 2006-06-19 10:07:44 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-06-19 10:07:44 -0400 |
commit | 6207dc41bd3cc396e82848002db784b2acb7a77d (patch) | |
tree | ae4498146278157021e0cab83ed33160eee870da /Modules/FindOpenGL.cmake | |
parent | f26a0302bec5093330e488e5ab44b1cb774a0899 (diff) | |
download | cmake-6207dc41bd3cc396e82848002db784b2acb7a77d.tar.gz |
ENH: Do not search for X11 if it is already found.
Diffstat (limited to 'Modules/FindOpenGL.cmake')
-rw-r--r-- | Modules/FindOpenGL.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindOpenGL.cmake b/Modules/FindOpenGL.cmake index 4c18911251..ac67d42b1f 100644 --- a/Modules/FindOpenGL.cmake +++ b/Modules/FindOpenGL.cmake @@ -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}) |