Link against systemwide OpenCL on OS X.
This commit is contained in:
+3
-1
@@ -379,7 +379,9 @@ else()
|
|||||||
check_lib(CGGL CgGL Cg/cgGL.h)
|
check_lib(CGGL CgGL Cg/cgGL.h)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
|
find_library(CL OpenCL)
|
||||||
|
else()
|
||||||
include_directories(Externals/CLRun/include)
|
include_directories(Externals/CLRun/include)
|
||||||
add_subdirectory(Externals/CLRun)
|
add_subdirectory(Externals/CLRun)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -40,6 +40,10 @@ set(SRCS Src/BPFunctions.cpp
|
|||||||
Src/memcpy_amd.cpp)
|
Src/memcpy_amd.cpp)
|
||||||
|
|
||||||
set(LIBS core)
|
set(LIBS core)
|
||||||
|
if(NOT ${CL} STREQUAL CL-NOTFOUND)
|
||||||
|
list(APPEND LIBS ${CL})
|
||||||
|
endif()
|
||||||
|
|
||||||
if(wxWidgets_FOUND AND WIN32)
|
if(wxWidgets_FOUND AND WIN32)
|
||||||
set(SRCS ${SRCS} Src/EmuWindow.cpp)
|
set(SRCS ${SRCS} Src/EmuWindow.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user