Why look for X11 again, if we did so already before?
[e.g. due to FindQt4.cmake]
This should save a bit of time in reconfiguring, since FindX11 has a rather 
large set of checks
(it's even larger in kde's version of it, due to additional libs), and since 
FindX11 doesn't have
a fast path when things are in the cache already (it rechecks every time).

-- 
David Faure, [EMAIL PROTECTED], sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
Index: FindOpenGL.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindOpenGL.cmake,v
retrieving revision 1.36
diff -u -p -r1.36 FindOpenGL.cmake
--- FindOpenGL.cmake	14 Mar 2006 21:38:52 -0000	1.36
+++ FindOpenGL.cmake	18 Jun 2006 22:13:08 -0000
@@ -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})
_______________________________________________
Kde-buildsystem mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-buildsystem

Reply via email to