CMakeLists.txt and OpenCL variable names (Defect #740)

Added by Torquil Sørensen almost 4 years ago. Updated almost 4 years ago.

Status:New Start date:01 Sep 2015
Priority:Normal Due date:
Assignee:- % Done:


Target version:-


In the top-level CMakeLists.txt, I think it is assumed that find_package( OpenCL REQUIRED ) will create the variable OPENCL_LIBRARIES. OPENCL_LIBRARIES is used e.g. around line 170 to set the variable OPTIMAL_USED_LIBS, as well as other CMakeLists.txt files in subdirectories.

But in my CMake 3.3, the name of the variable is OpenCL_LIBRARIES, not OPENCL_LIBRARIES. As a result errors occur related to OpenCL linking.

As a temporary workaround, I have included a line


to set the uppercase variable so that the rest of CMakeLists.txt works.


Also available in: Atom PDF