Commit cbced23d authored by Alexander Alekhin's avatar Alexander Alekhin

cmake: don't include protobuf on disabled DNN module

parent bdb6b45c
......@@ -2,6 +2,10 @@ if(WINRT)
ocv_module_disable(dnn)
endif()
if(DEFINED BUILD_opencv_dnn AND NOT BUILD_opencv_dnn)
return()
endif()
include(${OpenCV_SOURCE_DIR}/cmake/OpenCVFindLibProtobuf.cmake)
if(NOT Protobuf_FOUND)
ocv_module_disable(opencv_dnn)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment