提交 73b0297e 编写于 作者: J James R. Barlow

Fix configure.ac unconditionally enabling OpenCL

上级 18ac7ae7
......@@ -221,9 +221,14 @@ case "${host_os}" in
if test $my_cv_framework_OpenCL = yes; then
have_opencl_lib=true
fi
AC_SUBST([AM_CPPFLAGS], [-DUSE_OPENCL])
OPENCL_CPPFLAGS=""
OPENCL_LDFLAGS="-framework OpenCL"
if test "$enable_opencl" = "yes"; then
if !($have_opencl_lib); then
AC_MSG_ERROR(Required OpenCL library not found!)
fi
AC_SUBST([AM_CPPFLAGS], [-DUSE_OPENCL])
OPENCL_CPPFLAGS=""
OPENCL_LDFLAGS="-framework OpenCL"
fi
;;
*)
# default
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册