Ignore:
Timestamp:
Sep 18, 2017, 7:29:26 PM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: Improve detecting GL/gl.h header availability (yet another fix).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CMakeLists.txt

    r3394 r3395  
    306306IF(NOT NO_CLWRAPPER)
    307307    FIND_PACKAGE(OpenGL)
    308     IF(OPENGL_FOUND)
    309         FIND_PATH(HAVE_OPENGL GL/gl.h PATHS "${OPENGL_INCLUDE_DIR}")
    310         IF(HAVE_OPENGL)
    311             MESSAGE(STATUS "OpenGL found")
    312             MESSAGE(STATUS "OpenGL include dirs: " ${OPENGL_INCLUDE_DIR})
    313         ELSE(HAVE_OPENGL)
    314             MESSAGE(STATUS "OpenGL not found")
    315         ENDIF(HAVE_OPENGL)
    316     ELSE(OPENGL_FOUND)
     308    FIND_PATH(HAVE_OPENGL GL/gl.h PATHS "${OPENGL_INCLUDE_DIR}")
     309    # check GL/gl.h even if OpenGL is not detected (library is not needed)
     310    IF(HAVE_OPENGL)
     311        MESSAGE(STATUS "OpenGL found")
     312        MESSAGE(STATUS "OpenGL include dirs: " ${OPENGL_INCLUDE_DIR})
     313    ELSE(HAVE_OPENGL)
    317314        MESSAGE(STATUS "OpenGL not found")
    318     ENDIF(OPENGL_FOUND)
     315    ENDIF(HAVE_OPENGL)
    319316ENDIF(NOT NO_CLWRAPPER)
    320317
Note: See TracChangeset for help on using the changeset viewer.