Skip to content

Commit d2dbc9d

Browse files
committed
Merge pull request opencv#18589 from alalek:issue_13328
2 parents 8c4d415 + dfb9832 commit d2dbc9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

3rdparty/protobuf/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ append_if_exist(Protobuf_SRCS
140140
${PROTOBUF_ROOT}/src/google/protobuf/wrappers.pb.cc
141141
)
142142

143+
include_directories(BEFORE "${PROTOBUF_ROOT}/src") # ensure using if own headers: https://github.com/opencv/opencv/issues/13328
143144
add_library(libprotobuf STATIC ${Protobuf_SRCS})
144145
target_include_directories(libprotobuf SYSTEM PUBLIC $<BUILD_INTERFACE:${PROTOBUF_ROOT}/src>)
145146
set_target_properties(libprotobuf

0 commit comments

Comments
 (0)