Link weakly to OpenCL on OS X.

This makes sure Dolphin still loads when OpenCL is not available.
OpenCL was added in OS X 10.6, while we also support 10.5.
This commit is contained in:
Maarten ter Huurne 2011-12-15 06:54:42 +01:00
parent 27590c3a8f
commit e13f4644bb
1 changed files with 1 additions and 0 deletions

View File

@ -437,6 +437,7 @@ endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
find_library(CL OpenCL)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-weak_framework,OpenCL")
else()
include_directories(Externals/CLRun/include)
add_subdirectory(Externals/CLRun)