From b0684c10ba8bb5a9fd88a2cf21c27ace06e512fd Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Tue, 3 May 2022 03:39:56 +0200 Subject: [PATCH] FixInterfaceIncludes: Skip empty dirs list --- cmake/FixInterfaceIncludes.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/FixInterfaceIncludes.cmake b/cmake/FixInterfaceIncludes.cmake index 2a3b5b12..6ca3cc7f 100644 --- a/cmake/FixInterfaceIncludes.cmake +++ b/cmake/FixInterfaceIncludes.cmake @@ -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)