Changeset 166702 in webkit


Ignore:
Timestamp:
Apr 3, 2014 12:27:58 AM (10 years ago)
Author:
rakuco@webkit.org
Message:

[GTK][CMake] Look for glx.h in OPENGL_INCLUDE_DIR.
https://bugs.webkit.org/show_bug.cgi?id=131095

Reviewed by Martin Robinson.

One needs to take into account OpenGL's include directory found via
find_package() when looking for glx.h, since if the former is a
non-standard location the latter will also be. If this is not it is
possible that OpenGL is found but GLX support is not properly detected.

  • Source/cmake/OptionsGTK.cmake:
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r166648 r166702  
     12014-04-02  Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
     2
     3        [GTK][CMake] Look for glx.h in OPENGL_INCLUDE_DIR.
     4        https://bugs.webkit.org/show_bug.cgi?id=131095
     5
     6        Reviewed by Martin Robinson.
     7
     8        One needs to take into account OpenGL's include directory found via
     9        find_package() when looking for glx.h, since if the former is a
     10        non-standard location the latter will also be. If this is not it is
     11        possible that OpenGL is found but GLX support is not properly detected.
     12
     13        * Source/cmake/OptionsGTK.cmake:
     14
    1152014-04-02  Martin Robinson  <mrobinson@igalia.com>
    216
  • trunk/Source/cmake/OptionsGTK.cmake

    r166501 r166702  
    223223endif ()
    224224
     225find_package(OpenGL)
     226
     227# This part can be simplified once CMake 2.8.6 is required and
     228# CMakePushCheckState can be used. We need to have OPENGL_INCLUDE_DIR as part
     229# of the directories check_include_files() looks for in case OpenGL is
     230# installed into a non-standard location.
     231set(REQUIRED_INCLUDES_OLD ${CMAKE_REQUIRED_INCLUDES})
     232set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${OPENGL_INCLUDE_DIR})
    225233# We don't use find_package for GLX because it is part of -lGL, unlike EGL.
    226 find_package(OpenGL)
    227234check_include_files("GL/glx.h" GLX_FOUND)
     235set(CMAKE_REQUIRED_INCLUDES ${REQUIRED_INCLUDES_OLD})
     236
    228237find_package(EGL)
    229 
    230238if (EGL_FOUND)
    231239    set(WTF_USE_EGL 1)
Note: See TracChangeset for help on using the changeset viewer.