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)
|
type_expr)
|
||||||
set(scoped_name "googleapis-c++::${_target}_protos")
|
set(scoped_name "googleapis-c++::${_target}_protos")
|
||||||
set(imported_name "googleapis_cpp_${_target}_protos")
|
set(imported_name "googleapis_cpp_${_target}_protos")
|
||||||
add_library(${scoped_name} IMPORTED INTERFACE)
|
if (NOT TARGET ${scoped_name})
|
||||||
set_target_properties(${scoped_name}
|
add_library(${scoped_name} IMPORTED INTERFACE)
|
||||||
PROPERTIES INTERFACE_LINK_LIBRARIES ${imported_name})
|
set_target_properties(${scoped_name}
|
||||||
|
PROPERTIES INTERFACE_LINK_LIBRARIES
|
||||||
|
${imported_name})
|
||||||
|
endif ()
|
||||||
endforeach ()
|
endforeach ()
|
||||||
|
|
Loading…
Reference in a new issue