Skip to content
Permalink
Browse files

[opencl] Simplify OpenCL configuration in CMake

and add a message without failing if not found
  • Loading branch information
elpaso committed Aug 8, 2018
1 parent 9ff8779 commit 82b60df671204985a37fb0d35ddac2429c90cebf
Showing with 3 additions and 6 deletions.
  1. +3 −6 CMakeLists.txt
@@ -34,12 +34,9 @@ option(USE_OPENCL "Use OpenCL" ON)
if (USE_OPENCL)
FIND_PACKAGE(OpenCL)
if(${OpenCL_FOUND})
SET (USE_OPENCL TRUE CACHE BOOL "Use OpenCL")
IF(USE_OPENCL)
SET(HAVE_OPENCL TRUE)
ENDIF(USE_OPENCL)
else(${OpenCL_FOUND})
MESSAGE(FATAL_ERROR "Couldn't find OpenCL")
SET(HAVE_OPENCL TRUE)
else(${OpenCL_FOUND})
MESSAGE(STATUS "Couldn't find OpenCL: support DISABLED")
endif(${OpenCL_FOUND})
endif(USE_OPENCL)

0 comments on commit 82b60df

Please sign in to comment.
You can’t perform that action at this time.