diff options
Diffstat (limited to 'sc/Library_scopencl.mk')
-rw-r--r-- | sc/Library_scopencl.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sc/Library_scopencl.mk b/sc/Library_scopencl.mk index 2942e4709f68..c2ca1f397189 100644 --- a/sc/Library_scopencl.mk +++ b/sc/Library_scopencl.mk @@ -36,7 +36,8 @@ $(eval $(call gb_Library_use_libraries,scopencl,\ $(eval $(call gb_Library_add_exception_objects,scopencl,\ sc/source/core/opencl/formulagroupcl \ sc/source/core/opencl/openclwrapper \ - sc/source/core/opencl/clcc/clew \ + $(if $(filter-out MACOSX,$(OS)), \ + sc/source/core/opencl/clcc/clew) \ )) ifeq ($(OS),LINUX) @@ -45,4 +46,10 @@ $(eval $(call gb_Library_add_libs,scopencl,\ )) endif +ifeq ($(OS),MACOSX) +$(eval $(call gb_Library_add_libs,scopencl,\ + -framework OpenCL \ +)) +endif + # vim: set noet sw=4 ts=4: |