Changeset 3453 in CLRX


Ignore:
Timestamp:
Oct 4, 2017, 4:40:11 PM (23 months ago)
Author:
matszpk
Message:

CLRadeonExtender: Fix for detecting OpenGL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CMakeLists.txt

    r3450 r3453  
    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    ENDIF(OPENGL_INCLUDE_DIR)
    309311    # check GL/gl.h even if OpenGL is not detected (library is not needed)
    310312    IF(HAVE_OPENGL)
Note: See TracChangeset for help on using the changeset viewer.