mirror of
https://github.com/opencv/opencv.git
synced 2024-11-30 06:10:02 +08:00
Merge pull request #9275 from alalek:cmake_protobuf_optional
This commit is contained in:
commit
06a9c16961
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user