Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
e7b54ce8
Commit
e7b54ce8
authored
Aug 24, 2017
by
Vladislav Sovrasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnn_modern: disable module if protobuf compiler not found
parent
f953e690
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
CMakeLists.txt
modules/dnn_modern/CMakeLists.txt
+6
-0
No files found.
modules/dnn_modern/CMakeLists.txt
View file @
e7b54ce8
...
...
@@ -81,6 +81,12 @@ add_definitions(-DCNN_NO_SERIALIZATION -DCNN_USE_CAFFE_CONVERTER)
# this is not needed anymore.
find_package
(
Protobuf QUIET
)
if
(
NOT
${
Protobuf_FOUND
}
)
message
(
STATUS
"Module opencv_dnn_modern disabled because Protobuf is not found"
)
ocv_module_disable
(
dnn_modern
)
return
()
endif
()
if
(
DEFINED PROTOBUF_PROTOC_EXECUTABLE AND EXISTS
${
PROTOBUF_PROTOC_EXECUTABLE
}
)
execute_process
(
COMMAND
${
PROTOBUF_PROTOC_EXECUTABLE
}
caffe.proto --cpp_out=./
WORKING_DIRECTORY
${
TINYDNN_INCLUDE_DIRS
}
/tiny_dnn/io/caffe
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment