mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 04:52:53 +08:00
Merge pull request #12741 from GeorgeMironov:fix-cmake-protobuf
This commit is contained in:
commit
4fa6734320
@ -44,8 +44,10 @@ else()
|
|||||||
|
|
||||||
if(Protobuf_FOUND)
|
if(Protobuf_FOUND)
|
||||||
if(TARGET protobuf::libprotobuf)
|
if(TARGET protobuf::libprotobuf)
|
||||||
add_library(libprotobuf INTERFACE)
|
add_library(libprotobuf INTERFACE IMPORTED)
|
||||||
target_link_libraries(libprotobuf INTERFACE protobuf::libprotobuf)
|
set_target_properties(libprotobuf PROPERTIES
|
||||||
|
INTERFACE_LINK_LIBRARIES protobuf::libprotobuf
|
||||||
|
)
|
||||||
else()
|
else()
|
||||||
add_library(libprotobuf UNKNOWN IMPORTED)
|
add_library(libprotobuf UNKNOWN IMPORTED)
|
||||||
set_target_properties(libprotobuf PROPERTIES
|
set_target_properties(libprotobuf PROPERTIES
|
||||||
|
Loading…
Reference in New Issue
Block a user