Skip to content

Commit

Permalink
check availability of opencl include files (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
borg323 committed Dec 6, 2018
1 parent 464e733 commit 356188a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@ if get_option('build_backends')

endif

if has_opencl and cc.has_header('CL/opencl.h', args: get_option('opencl_include'))
has_opencl = false
endif

if get_option('opencl') and has_opencl

opencl_files = [
Expand Down

0 comments on commit 356188a

Please sign in to comment.