瀏覽代碼

win-dshow: Fix CMake preventing Virtual Camera from working

The code prior to this change would never add virtualcam.c to the
win-dshow target, which resulted in the virtualcam_output not being
registered and thus Virtual Camera not working.

Co-authored-by: PatTheMav <[email protected]>
Ryan Foster 1 年之前
父節點
當前提交
cba6ed40d2
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      plugins/win-dshow/CMakeLists.txt

+ 3 - 3
plugins/win-dshow/CMakeLists.txt

@@ -44,14 +44,14 @@ target_link_libraries(
     winmm
 )
 
+add_subdirectory(virtualcam-module)
+
 if(TARGET OBS::virtualcam AND TARGET OBS::virtualcam-guid)
   target_sources(win-dshow PRIVATE virtualcam.c)
-  target_link_libraries(win-dshow PRIVATE OBS::virtualcam-interface OBS::virtualcam-guid)
+  target_link_libraries(win-dshow PRIVATE OBS::virtualcam-guid)
   target_compile_definitions(win-dshow PRIVATE VIRTUALCAM_AVAILABLE)
 
   add_dependencies(win-dshow obs-virtualcam-module)
 endif()
 
 set_target_properties_obs(win-dshow PROPERTIES FOLDER plugins/win-dshow PREFIX "")
-
-add_subdirectory(virtualcam-module)