[Cmake-commits] CMake branch, next, updated. v3.1.0-rc2-970-g7bf6711

Brad King brad.king at kitware.com
Mon Dec 1 11:09:07 EST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  7bf67118463e1111560f0c8a62d5064455819365 (commit)
       via  d051cbda5d9d4456619fac5d49f24c8827228aa9 (commit)
      from  120e11fe8cde02a574eb972c8f98cfb6d7a67648 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7bf67118463e1111560f0c8a62d5064455819365
commit 7bf67118463e1111560f0c8a62d5064455819365
Merge: 120e11f d051cbd
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Mon Dec 1 11:09:06 2014 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Mon Dec 1 11:09:06 2014 -0500

    Merge topic 'FindOpenGL-no-X11' into next
    
    d051cbda FindOpenGL: Drop explicit dependency on X11 (#15268)


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d051cbda5d9d4456619fac5d49f24c8827228aa9
commit d051cbda5d9d4456619fac5d49f24c8827228aa9
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Mon Dec 1 10:54:20 2014 -0500
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Mon Dec 1 11:05:29 2014 -0500

    FindOpenGL: Drop explicit dependency on X11 (#15268)
    
    In commit 079e8469ab (... OpenGL always needs X11 on Unix, 2002-09-05)
    the FindOpenGL module was taught to search for X11 as a dependency of
    the OpenGL library.  This was done without a detailed explanation, and
    the dependency should not be explicitly needed because OpenGL headers
    should not expose applications to X11 APIs directly.
    
    Unfortunately the only way to know if anything legitimately depends on
    this behavior (perhaps in static library cases) is to simply remove it
    and wait for issues to be reported.  If so, then we can add some kind of
    compatibility setting for this later.  Add a release note to draw
    attention to this change.
    
    Reported-by: Dainius "GreatEmerald" Masiliūnas <pastas4 at gmail.com>

diff --git a/Help/release/dev/FindOpenGL-no-X11.rst b/Help/release/dev/FindOpenGL-no-X11.rst
new file mode 100644
index 0000000..dacf165
--- /dev/null
+++ b/Help/release/dev/FindOpenGL-no-X11.rst
@@ -0,0 +1,8 @@
+FindOpenGL-no-X11
+-----------------
+
+* The :module:`FindOpenGL` module no longer explicitly searches
+  for any dependency on X11 libraries with the :module:`FindX11`
+  module.  Such dependencies should not need to be explicit.
+  Applications using X11 APIs themselves should find and link
+  to X11 libraries explicitly.
diff --git a/Modules/FindOpenGL.cmake b/Modules/FindOpenGL.cmake
index 2b3bd14..373c58f 100644
--- a/Modules/FindOpenGL.cmake
+++ b/Modules/FindOpenGL.cmake
@@ -138,19 +138,6 @@ else()
   unset(_OPENGL_INCLUDE_PATH)
   unset(_OPENGL_LIB_PATH)
 
-  # On Unix OpenGL most certainly always requires X11.
-  # Feel free to tighten up these conditions if you don't
-  # think this is always true.
-
-  if (OPENGL_gl_LIBRARY)
-    if(NOT X11_FOUND)
-      include(${CMAKE_CURRENT_LIST_DIR}/FindX11.cmake)
-    endif()
-    if (X11_FOUND)
-      set (OPENGL_LIBRARIES ${X11_LIBRARIES})
-    endif ()
-  endif ()
-
   find_library(OPENGL_glu_LIBRARY
     NAMES GLU MesaGLU
     PATHS ${OPENGL_gl_LIBRARY}

-----------------------------------------------------------------------

Summary of changes:
 Help/release/dev/FindOpenGL-no-X11.rst |    8 ++++++++
 Modules/FindOpenGL.cmake               |   13 -------------
 2 files changed, 8 insertions(+), 13 deletions(-)
 create mode 100644 Help/release/dev/FindOpenGL-no-X11.rst


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list