Kaydet (Commit) 3887ba56 authored tarafından Michael Meeks's avatar Michael Meeks

Fix opencl path and linking issues on windows.

Change-Id: Ie39a3c02d6021ae200d6e3939ec9a14ed7f34d21
üst 74b5f592
...@@ -9840,8 +9840,14 @@ elif test "z$with_opencl_sdk" = "z"; then ...@@ -9840,8 +9840,14 @@ elif test "z$with_opencl_sdk" = "z"; then
else else
if test -d "$with_opencl_sdk/include"; then if test -d "$with_opencl_sdk/include"; then
ENABLE_OPENCL=TRUE ENABLE_OPENCL=TRUE
OPENCL_CFLAGS="-I$with_opencl_sdk/include" if test "$_os" = "WINNT"; then
OPENCL_LIBS="-L$with_opencl_sdk/lib/x86 -lOpenCL" PathFormat "$with_opencl_sdk"
OPENCL_CFLAGS="-I$formatted_path/include"
OPENCL_LIBS="-LIBPATH:$formatted_path/lib/x86 OpenCL.lib"
else
OPENCL_CFLAGS="-I$with_opencl_sdk/include"
OPENCL_LIBS="-L$with_opencl_sdk/lib/x86 -lOpenCL"
fi
AC_MSG_RESULT([found at path $with_opencl_sdk]) AC_MSG_RESULT([found at path $with_opencl_sdk])
AC_DEFINE(HAVE_FEATURE_OPENCL) AC_DEFINE(HAVE_FEATURE_OPENCL)
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment