Changeset 4056 in CLRX


Ignore:
Timestamp:
May 1, 2018, 9:07:37 AM (4 weeks ago)
Author:
matszpk
Message:

CLRadeonExtender: Fixed setting OPENCL_INCLUDE_DIRS for AMDGPU-PRO OpenCL headers (include OPENCL_DIST_DIR and older OPENCL_INCLUDE_DIRS).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CMakeLists.txt

    r4055 r4056  
    302302            SET(OPENCL_LIBRARY_DIRS "/opt/amdgpu-pro/lib/i386-linux-gnu")
    303303        ENDIF(HAVE_64BIT)
    304         IF(NOT EXISTS /usr/include/CL/cl.h)
     304        IF(NOT OPENCL_INCLUDE_DIRS OR NOT EXISTS "${OPENCL_INCLUDE_DIRS}/CL/cl.h")
    305305            SET(OPENCL_INCLUDE_DIRS "/opt/amdgpu-pro/include")
    306         ENDIF(NOT EXISTS /usr/include/CL/cl.h)
     306        ENDIF(NOT OPENCL_INCLUDE_DIRS OR NOT EXISTS "${OPENCL_INCLUDE_DIRS}/CL/cl.h")
    307307    ENDIF(HAVE_GPUPRO_NEW)
    308308    IF(HAVE_GPUPRO_SLES)
     
    312312            SET(OPENCL_LIBRARY_DIRS "/opt/amdgpu-pro/lib")
    313313        ENDIF(HAVE_64BIT)
    314         IF(NOT EXISTS /usr/include/CL/cl.h)
     314        IF(NOT OPENCL_INCLUDE_DIRS OR NOT EXISTS "${OPENCL_INCLUDE_DIRS}/CL/cl.h")
    315315            SET(OPENCL_INCLUDE_DIRS "/opt/amdgpu-pro/include")
    316         ENDIF(NOT EXISTS /usr/include/CL/cl.h)
     316        ENDIF(NOT OPENCL_INCLUDE_DIRS OR NOT EXISTS "${OPENCL_INCLUDE_DIRS}/CL/cl.h")
    317317    ENDIF(HAVE_GPUPRO_SLES)
    318318ENDIF(HAVE_OPENCL)
Note: See TracChangeset for help on using the changeset viewer.