projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ffc186
)
Fix install with external protobuf
author
Georgy Mironov
<george.mironov@synesis.ru>
Thu, 4 Oct 2018 10:48:40 +0000
(13:48 +0300)
committer
Georgy Mironov
<george.mironov@synesis.ru>
Thu, 4 Oct 2018 10:48:59 +0000
(13:48 +0300)
cmake/OpenCVFindProtobuf.cmake
patch
|
blob
|
history
diff --git
a/cmake/OpenCVFindProtobuf.cmake
b/cmake/OpenCVFindProtobuf.cmake
index
289fa60
..
98e1ce2
100644
(file)
--- a/
cmake/OpenCVFindProtobuf.cmake
+++ b/
cmake/OpenCVFindProtobuf.cmake
@@
-44,8
+44,10
@@
else()
if(Protobuf_FOUND)
if(TARGET protobuf::libprotobuf)
- add_library(libprotobuf INTERFACE)
- target_link_libraries(libprotobuf INTERFACE protobuf::libprotobuf)
+ add_library(libprotobuf INTERFACE IMPORTED)
+ set_target_properties(libprotobuf PROPERTIES
+ INTERFACE_LINK_LIBRARIES protobuf::libprotobuf
+ )
else()
add_library(libprotobuf UNKNOWN IMPORTED)
set_target_properties(libprotobuf PROPERTIES