Skip to content

Commit d3baf8a

Browse files
authored
Ensure target exists before calling function (#705)
1 parent 6cf1c06 commit d3baf8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/CppInterOp/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ endif()
6969
continue()
7070
endif()
7171
foreach(transitive_lib ${transitive_libs})
72+
if(NOT TARGET ${transitive_lib})
73+
continue()
74+
endif()
7275
get_target_property(lib_type ${transitive_lib} TYPE)
7376
if("${lib_type}" STREQUAL "STATIC_LIBRARY")
7477
list(APPEND static_transitive_libs ${transitive_lib})

0 commit comments

Comments
 (0)