We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e91983 + e7b54ce commit e7547d6Copy full SHA for e7547d6
modules/dnn_modern/CMakeLists.txt
@@ -81,6 +81,12 @@ add_definitions(-DCNN_NO_SERIALIZATION -DCNN_USE_CAFFE_CONVERTER)
81
# this is not needed anymore.
82
find_package(Protobuf QUIET)
83
84
+if(NOT ${Protobuf_FOUND})
85
+ message(STATUS "Module opencv_dnn_modern disabled because Protobuf is not found")
86
+ ocv_module_disable(dnn_modern)
87
+ return()
88
+endif()
89
+
90
if(DEFINED PROTOBUF_PROTOC_EXECUTABLE AND EXISTS ${PROTOBUF_PROTOC_EXECUTABLE})
91
execute_process(COMMAND ${PROTOBUF_PROTOC_EXECUTABLE} caffe.proto --cpp_out=./
92
WORKING_DIRECTORY ${TINYDNN_INCLUDE_DIRS}/tiny_dnn/io/caffe)
0 commit comments