Skip to content

Commit

Permalink
Merge pull request opencv#18589 from alalek:issue_13328
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Oct 15, 2020
2 parents 8c4d415 + dfb9832 commit d2dbc9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 3rdparty/protobuf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ append_if_exist(Protobuf_SRCS
${PROTOBUF_ROOT}/src/google/protobuf/wrappers.pb.cc
)

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

0 comments on commit d2dbc9d

Please sign in to comment.