[opencl] Error message when OpenCL could not be found

This commit is contained in:
Alessandro Pasotti 2018-07-17 10:14:49 +02:00
parent add3d074b8
commit ed7e831ddc

View File

@ -38,6 +38,8 @@ if (USE_OPENCL)
IF(USE_OPENCL)
SET(HAVE_OPENCL TRUE)
ENDIF(USE_OPENCL)
else(${OpenCL_FOUND})
MESSAGE(FATAL_ERROR "Couldn't find OpenCL")
endif(${OpenCL_FOUND})
endif(USE_OPENCL)