Просмотр исходного кода

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

jp9000 9 лет назад
Родитель
Сommit
84613cecff
1 измененных файлов с 5 добавлено и 0 удалено
  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)