Skip to content

Commit dfb9832

Browse files
committed
cmake(protobuf): ensure using of own headers
1 parent 169dc9c commit dfb9832

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
@@ -139,6 +139,7 @@ append_if_exist(Protobuf_SRCS
139139
${PROTOBUF_ROOT}/src/google/protobuf/wrappers.pb.cc
140140
)
141141

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

0 commit comments

Comments
 (0)