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)