Browse Source

win-dshow: Disable plugin and warn if submodule not found

jp9000 9 years ago
parent
commit
84613cecff
1 changed files with 5 additions and 0 deletions
  1. 5 0
      plugins/win-dshow/CMakeLists.txt

+ 5 - 0
plugins/win-dshow/CMakeLists.txt

@@ -1,3 +1,8 @@
+if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/libdshowcapture/dshowcapture.hpp")
+	message(STATUS "libdshowcapture submodule not found!  Please fetch submodules.  win-dshow plugin disabled.")
+	return()
+endif()
+
 project(win-dshow)
 
 find_package(FFmpeg REQUIRED COMPONENTS avcodec avutil)