mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 12:22:51 +08:00
cmake: don't include protobuf on disabled DNN module
This commit is contained in:
parent
bdb6b45c91
commit
cbced23de4
@ -2,6 +2,10 @@ if(WINRT)
|
|||||||
ocv_module_disable(dnn)
|
ocv_module_disable(dnn)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(DEFINED BUILD_opencv_dnn AND NOT BUILD_opencv_dnn)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
include(${OpenCV_SOURCE_DIR}/cmake/OpenCVFindLibProtobuf.cmake)
|
include(${OpenCV_SOURCE_DIR}/cmake/OpenCVFindLibProtobuf.cmake)
|
||||||
if(NOT Protobuf_FOUND)
|
if(NOT Protobuf_FOUND)
|
||||||
ocv_module_disable(opencv_dnn)
|
ocv_module_disable(opencv_dnn)
|
||||||
|
Loading…
Reference in New Issue
Block a user