cmake: allow to disable ADE build too (BUILD_opencv_gapi=OFF is not enough)

CMake option: WITH_ADE=OFF
This commit is contained in:
Alexander Alekhin 2018-11-23 12:51:26 +03:00
parent 02cc1cd6e6
commit de8696aa43

View File

@ -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