Browse Source

Fix mav-avcapture dependencies

BtbN 11 years ago
parent
commit
3e224b9750
1 changed files with 6 additions and 3 deletions
  1. 6 3
      plugins/mac-avcapture/CMakeLists.txt

+ 6 - 3
plugins/mac-avcapture/CMakeLists.txt

@@ -5,13 +5,14 @@ find_library(COCOA Cocoa)
 find_library(COREFOUNDATION CoreFoundation)
 find_library(COREMEDIA CoreMedia)
 find_library(COREVIDEO CoreVideo)
-
+find_library(COCOA Cocoa)
 
 include_directories(${AVFOUNDATION}
                     ${COCOA}
                     ${COREFOUNDATION}
                     ${COREMEDIA}
-                    ${COREVIDEO})
+                    ${COREVIDEO}
+		    ${COCOA})
 
 set(mac-avcapture_HEADERS
 	)
@@ -33,6 +34,8 @@ target_link_libraries(mac-avcapture
 	${COCOA}
 	${COREFOUNDATION}
 	${COREMEDIA}
-	${COREVIDEO})
+	${COREVIDEO}
+	${COCOA})
 
 install_obs_plugin(mac-avcapture)
+