CMakeLists.txt and OpenCL variable names (Defect #740)
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.