FixInterfaceIncludes: Skip empty dirs list

This commit is contained in:
Nadia Holmquist Pedersen 2022-05-03 03:39:56 +02:00
parent a8335dff14
commit b0684c10ba
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@ function(fix_interface_includes)
set(NEW_DIRS)
get_target_property(DIRS "${target}" INTERFACE_INCLUDE_DIRECTORIES)
if (NOT DIRS)
continue()
endif()
foreach (DIR ${DIRS})
get_filename_component(PARENT_DIR "${DIR}" DIRECTORY)