bug: do not redefine targets in config file.
This commit is contained in:
commit
03c3da1e78
1 changed files with 6 additions and 3 deletions
|
@ -38,7 +38,10 @@ foreach (_target
|
|||
type_expr)
|
||||
set(scoped_name "googleapis-c++::${_target}_protos")
|
||||
set(imported_name "googleapis_cpp_${_target}_protos")
|
||||
if (NOT TARGET ${scoped_name})
|
||||
add_library(${scoped_name} IMPORTED INTERFACE)
|
||||
set_target_properties(${scoped_name}
|
||||
PROPERTIES INTERFACE_LINK_LIBRARIES ${imported_name})
|
||||
PROPERTIES INTERFACE_LINK_LIBRARIES
|
||||
${imported_name})
|
||||
endif ()
|
||||
endforeach ()
|
||||
|
|
Loading…
Reference in a new issue