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.
This commit is contained in:
erwin.coumans
2011-02-09 00:51:40 +00:00
parent cb497b88a6
commit b4876b22cd

View File

@@ -11,6 +11,6 @@ IF(BUILD_NVIDIA_OPENCL_DEMOS)
SUBDIRS(NVidia)
ENDIF()
IF(APPLE)
IF(APPLE AND OPENCL_LIBRARY)
SUBDIRS(Apple)
ENDIF()