CMake Missing OpenCL Include Directory + fix

Front page Forums Installation CMake Missing OpenCL Include Directory + fix

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  ntr 3 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #794

    Josef Weinbub
    Participant

    Hi guys,

    if the OpenCL directory “CL/” is not in the default path, paralution’s CMake FindOpenCL.cmake script finds the proper location via the environment variable. However, the determined include path is not added to CMake’s set of include directories, thus my OpenCL backend build fails as CL/cl.h is not found. Merely adding the following to your main CMakeLists.txt file in line 113 fixes this (version 0.7.0):
    include_directories(${OPENCL_INCLUDE_DIRS})

    Best, Josef

    #795

    ntr
    Participant

    Hey Josef,

    Thanks a lot for your post. We will include this fix in the next release.

    Best regards,
    ntr

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.