diff options
Diffstat (limited to 'py')
-rw-r--r-- | py/usermod.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/usermod.cmake b/py/usermod.cmake index 8532762837..c814369a48 100644 --- a/py/usermod.cmake +++ b/py/usermod.cmake @@ -5,6 +5,10 @@ function(usermod_gather_sources SOURCES_VARNAME INCLUDE_DIRECTORIES_VARNAME INCL if (NOT ${LIB} IN_LIST ${INCLUDED_VARNAME}) list(APPEND ${INCLUDED_VARNAME} ${LIB}) + if (NOT TARGET ${LIB}) + return() + endif() + # Gather library sources get_target_property(lib_sources ${LIB} INTERFACE_SOURCES) if (lib_sources) |