Skip to content

Commit 879bca4

Browse files
authored
explicit TARGET check in sanitzer detection (#1120)
1 parent f29fb20 commit 879bca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/nanobind-config.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ function(nanobind_sanitizer_preload_env env_var)
459459
get_target_property(deps ${target} LINK_LIBRARIES)
460460
if(deps AND NOT deps STREQUAL "deps-NOTFOUND")
461461
foreach(dep ${deps})
462-
if(NOT "${dep}" IN_LIST all_deps)
462+
if(NOT "${dep}" IN_LIST all_deps AND TARGET "${dep}")
463463
list(APPEND all_deps "${dep}")
464464
endif()
465465
endforeach()

0 commit comments

Comments
 (0)