Skip to content

Commit aab3c3c

Browse files
author
Pradeep Garigipati
committed
Merge pull request arrayfire#515 from bkloppenborg/cmake_opencl_fix
Fix OpenCL not found for examples.
2 parents 88e1c55 + b321d88 commit aab3c3c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ FOREACH(FILE ${FILES})
5757
BUILD_EXAMPLE(${EXAMPLE} ${FILE} cuda afcuda)
5858
endif()
5959

60-
if(${ArrayFire_OPENCL_FOUND}) # variable defined by FIND(ArrayFire ...)
61-
BUILD_EXAMPLE(${EXAMPLE} ${FILE} opencl ${ArrayFire_OPENCL_LIBRARIES})
60+
if(${ArrayFire_OpenCL_FOUND}) # variable defined by FIND(ArrayFire ...)
61+
BUILD_EXAMPLE(${EXAMPLE} ${FILE} opencl ${ArrayFire_OpenCL_LIBRARIES})
6262
elseif(TARGET afopencl) # variable defined by the ArrayFire build tree
6363
BUILD_EXAMPLE(${EXAMPLE} ${FILE} opencl afopencl)
6464
endif()

0 commit comments

Comments
 (0)