Skip to content

Commit 82b60df

Browse files
committedAug 8, 2018
[opencl] Simplify OpenCL configuration in CMake
and add a message without failing if not found
1 parent 9ff8779 commit 82b60df

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed
 

‎CMakeLists.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,9 @@ option(USE_OPENCL "Use OpenCL" ON)
3434
if (USE_OPENCL)
3535
FIND_PACKAGE(OpenCL)
3636
if(${OpenCL_FOUND})
37-
SET (USE_OPENCL TRUE CACHE BOOL "Use OpenCL")
38-
IF(USE_OPENCL)
39-
SET(HAVE_OPENCL TRUE)
40-
ENDIF(USE_OPENCL)
41-
else(${OpenCL_FOUND})
42-
MESSAGE(FATAL_ERROR "Couldn't find OpenCL")
37+
SET(HAVE_OPENCL TRUE)
38+
else(${OpenCL_FOUND})
39+
MESSAGE(STATUS "Couldn't find OpenCL: support DISABLED")
4340
endif(${OpenCL_FOUND})
4441
endif(USE_OPENCL)
4542

0 commit comments

Comments
 (0)
Please sign in to comment.