Skip to content

Commit bf8fcc4

Browse files
Al-Nuaimi Ibraheemrbsheth
authored andcommitted
Hunter protobuf will only be used in unix
1 parent 10a09e0 commit bf8fcc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/OpenCVFindProtobuf.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if(BUILD_PROTOBUF)
3232
else()
3333
unset(Protobuf_VERSION CACHE)
3434
hunter_add_package(Protobuf)
35-
find_package(Protobuf QUIET)
35+
find_package(Protobuf CONFIG REQUIRED)
3636

3737
# Backwards compatibility
3838
# Define camel case versions of input variables
@@ -71,7 +71,7 @@ endif()
7171
if(HAVE_PROTOBUF AND PROTOBUF_UPDATE_FILES AND NOT COMMAND PROTOBUF_GENERATE_CPP)
7272
# message(FATAL_ERROR "Can't configure protobuf dependency (BUILD_PROTOBUF=${BUILD_PROTOBUF} PROTOBUF_UPDATE_FILES=${PROTOBUF_UPDATE_FILES})")
7373
hunter_add_package(Protobuf)
74-
find_package(Protobuf QUIET)
74+
find_package(Protobuf CONFIG REQUIRED)
7575
if(NOT COMMAND PROTOBUF_GENERATE_CPP)
7676
message(FATAL_ERROR "PROTOBUF_GENERATE_CPP command is not available")
7777
endif()

0 commit comments

Comments
 (0)