From de8696aa43826510d5fd2ba1563604a29ab18a9d Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Fri, 23 Nov 2018 12:51:26 +0300 Subject: [PATCH] cmake: allow to disable ADE build too (BUILD_opencv_gapi=OFF is not enough) CMake option: WITH_ADE=OFF --- modules/gapi/cmake/init.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/gapi/cmake/init.cmake b/modules/gapi/cmake/init.cmake index 9f6ebeff41..12e22120e1 100644 --- a/modules/gapi/cmake/init.cmake +++ b/modules/gapi/cmake/init.cmake @@ -1,3 +1,9 @@ +OCV_OPTION(WITH_ADE "Enable ADE framework (required for Graph API module)" ON) + +if(NOT WITH_ADE) + return() +endif() + if (ade_DIR) # if ade_DIR is set, use ADE-supplied CMake script # to set up variables to the prebuilt ADE