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:
parent
27590c3a8f
commit
e13f4644bb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue