We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 51d2b08 + 1f68a41 commit 03c3da1Copy full SHA for 03c3da1
cmake/config.cmake.in
@@ -38,7 +38,10 @@ foreach (_target
38
type_expr)
39
set(scoped_name "googleapis-c++::${_target}_protos")
40
set(imported_name "googleapis_cpp_${_target}_protos")
41
- add_library(${scoped_name} IMPORTED INTERFACE)
42
- set_target_properties(${scoped_name}
43
- PROPERTIES INTERFACE_LINK_LIBRARIES ${imported_name})
+ if (NOT TARGET ${scoped_name})
+ add_library(${scoped_name} IMPORTED INTERFACE)
+ set_target_properties(${scoped_name}
44
+ PROPERTIES INTERFACE_LINK_LIBRARIES
45
+ ${imported_name})
46
+ endif ()
47
endforeach ()
0 commit comments