Diff of /config/cmake/Modules/NewCMake/FindOpenCL.cmake [65128a] .. [bce878]  Maximize  Restore

  Switch to side-by-side view

--- a/config/cmake/Modules/NewCMake/FindOpenCL.cmake
+++ b/config/cmake/Modules/NewCMake/FindOpenCL.cmake
@@ -71,8 +71,8 @@
 
 IF (UNIX)
   FIND_PATH( OPENCL_INCLUDE_PATH CL/cl_gl.h PATHS /usr/include /usr/include/nvidia-current)
-  FIND_PATH(OPENCL_LIBRARY_PATH libOpenCL.so PATHS /usr/lib /usr/lib/nvidia-current)
-  FIND_LIBRARY(OPENCL_LIBRARIES NAMES libOpenCL.so PATHS /usr/lib /usr/lib/nvidia-current)
+  FIND_PATH(OPENCL_LIBRARY_PATH libOpenCL.so PATHS /usr/lib /usr/lib/nvidia-current ${OPENCL_LIBRARY_PATH} )
+  FIND_LIBRARY(OPENCL_LIBRARIES NAMES libOpenCL.so PATHS /usr/lib /usr/lib/nvidia-current ${OPENCL_LIBRARY_PATH} )
   IF (OPENCL_INCLUDE_PATH)
     IF (OPENCL_LIBRARY_PATH)
       IF (OPENCL_LIBRARIES)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks