From b4876b22cda83795a600988fa940d0660f57df4c Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Wed, 9 Feb 2011 00:51:40 +0000 Subject: [PATCH] Add check for cmake build system so that if the OpenCL library is not found, it will not compile the OpenCL-dependent code (on APPLE) Thanks to Max for the report and fix in Issue 480. --- .../GpuSoftBodySolvers/OpenCL/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/CMakeLists.txt b/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/CMakeLists.txt index 36b173cf8..93d5a407b 100644 --- a/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/CMakeLists.txt +++ b/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/CMakeLists.txt @@ -11,6 +11,6 @@ IF(BUILD_NVIDIA_OPENCL_DEMOS) SUBDIRS(NVidia) ENDIF() -IF(APPLE) +IF(APPLE AND OPENCL_LIBRARY) SUBDIRS(Apple) ENDIF()