From 84613cecff7cd86818d5eb341f2918cb2d9be24f Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 20 Sep 2016 05:07:30 -0700 Subject: [PATCH] win-dshow: Disable plugin and warn if submodule not found --- plugins/win-dshow/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/win-dshow/CMakeLists.txt b/plugins/win-dshow/CMakeLists.txt index f34e978b2..4a9f6f87e 100644 --- a/plugins/win-dshow/CMakeLists.txt +++ b/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)