Skip to content

Commit ed7e831

Browse files
committed
[opencl] Error message when OpenCL could not be found
1 parent add3d07 commit ed7e831

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ if (USE_OPENCL)
3838
IF(USE_OPENCL)
3939
SET(HAVE_OPENCL TRUE)
4040
ENDIF(USE_OPENCL)
41+
else(${OpenCL_FOUND})
42+
MESSAGE(FATAL_ERROR "Couldn't find OpenCL")
4143
endif(${OpenCL_FOUND})
4244
endif(USE_OPENCL)
4345

0 commit comments

Comments
 (0)