From cfc3f2590e385261a65354d4e6418635653fa8de Mon Sep 17 00:00:00 2001 From: Palana Date: Thu, 8 May 2014 14:31:43 +0200 Subject: [PATCH] Update OSX dependencies for cmake generators other than ninja/make --- libobs-opengl/CMakeLists.txt | 3 ++- plugins/mac-avcapture/CMakeLists.txt | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libobs-opengl/CMakeLists.txt b/libobs-opengl/CMakeLists.txt index e2a019f47..408938e91 100644 --- a/libobs-opengl/CMakeLists.txt +++ b/libobs-opengl/CMakeLists.txt @@ -28,7 +28,8 @@ elseif(APPLE) set(libobs-opengl_PLATFORM_DEPS ${COCOA} - ${IOSURF}) + ${IOSURF} + ${OPENGL_gl_LIBRARY}) else() set(libobs-opengl_PLATFORM_SOURCES gl-x11.c) diff --git a/plugins/mac-avcapture/CMakeLists.txt b/plugins/mac-avcapture/CMakeLists.txt index a9ff0fccf..53a7148a2 100644 --- a/plugins/mac-avcapture/CMakeLists.txt +++ b/plugins/mac-avcapture/CMakeLists.txt @@ -1,12 +1,14 @@ project(mac-avcapture) find_library(AVFOUNDATION AVFoundation) +find_library(COCOA Cocoa) find_library(COREFOUNDATION CoreFoundation) find_library(COREMEDIA CoreMedia) find_library(COREVIDEO CoreVideo) include_directories(${AVFOUNDATION} + ${COCOA} ${COREFOUNDATION} ${COREMEDIA} ${COREVIDEO}) @@ -28,6 +30,7 @@ add_library(mac-avcapture MODULE target_link_libraries(mac-avcapture libobs ${AVFOUNDATION} + ${COCOA} ${COREFOUNDATION} ${COREMEDIA} ${COREVIDEO})