Changeset 3455 in CLRX


Ignore:
Timestamp:
Oct 4, 2017, 4:54:14 PM (17 months ago)
Author:
matszpk
Message:

CLRadeonExtender: Fix for detecting OpenGL (if OpenGL include dir is set to NOTFOUND).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CMakeLists.txt

    r3454 r3455  
    306306IF(NOT NO_CLWRAPPER)
    307307    FIND_PACKAGE(OpenGL)
    308     FIND_PATH(HAVE_OPENGL GL/gl.h PATHS "${OPENGL_INCLUDE_DIR}")
     308    IF(OPENGL_INCLUDE_DIR)
     309        FIND_PATH(HAVE_OPENGL GL/gl.h PATHS "${OPENGL_INCLUDE_DIR}")
     310    ELSE(OPENGL_INCLUDE_DIR)
     311        SET(OPENGL_INCLUDE_DIR "")
     312    ENDIF(OPENGL_INCLUDE_DIR)
    309313    # check GL/gl.h even if OpenGL is not detected (library is not needed)
    310314    IF(HAVE_OPENGL)
Note: See TracChangeset for help on using the changeset viewer.