ocl: added errors processing in OpenCL code generator, resolve space issue

This commit is contained in:
Alexander Alekhin
2015-06-11 15:36:29 +03:00
parent 424c2bddb3
commit b7cfd5a7da
2 changed files with 9 additions and 1 deletions

View File

@@ -1,6 +1,14 @@
if (NOT EXISTS "${CL_DIR}")
message(FATAL_ERROR "Specified wrong OpenCL kernels directory: ${CL_DIR}")
endif()
file(GLOB cl_list "${CL_DIR}/*.cl" )
list(SORT cl_list)
if (NOT cl_list)
message(FATAL_ERROR "Can't find OpenCL kernels in directory: ${CL_DIR}")
endif()
string(REPLACE ".cpp" ".hpp" OUTPUT_HPP "${OUTPUT}")
get_filename_component(OUTPUT_HPP_NAME "${OUTPUT_HPP}" NAME)