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.
1 parent 169dc9c commit dfb9832Copy full SHA for dfb9832
3rdparty/protobuf/CMakeLists.txt
@@ -139,6 +139,7 @@ append_if_exist(Protobuf_SRCS
139
${PROTOBUF_ROOT}/src/google/protobuf/wrappers.pb.cc
140
)
141
142
+include_directories(BEFORE "${PROTOBUF_ROOT}/src") # ensure using if own headers: https://github.com/opencv/opencv/issues/13328
143
add_library(libprotobuf STATIC ${Protobuf_SRCS})
144
target_include_directories(libprotobuf SYSTEM PUBLIC $<BUILD_INTERFACE:${PROTOBUF_ROOT}/src>)
145
set_target_properties(libprotobuf
0 commit comments