build: Exclude external imported targets from missing libraries check

This commit is contained in:
Gabriel Ferreira
2024-12-07 18:37:02 +01:00
parent c3ece18972
commit 3192d8f936

View File

@@ -100,6 +100,11 @@ function(check_for_missing_libraries output_variable_name libraries)
continue()
endif()
# Match external imported targets out
if(lib MATCHES "^(ns3::)?[^:]+::.+$")
continue()
endif()
# check if the example depends on disabled modules
remove_lib_prefix("${lib}" lib)