aedi: support keeping of cmake module targets without namespace

This commit is contained in:
alexey.lysiuk 2023-07-20 12:09:06 +03:00
parent 5d7cdb4e37
commit 2d47d70110

View file

@ -462,8 +462,8 @@ class CMakeStaticDependencyTarget(CMakeTarget):
def keep_module_target(self, state: BuildState, target: str):
import_patterns = (
r'list\s*\(APPEND\s+_cmake_import_check_targets\s+(?P<target>\w+::[\w-]+)[\s)]',
r'list\s*\(APPEND\s+_cmake_import_check_files_for_(?P<target>\w+::[\w-]+)\s',
r'list\s*\(APPEND\s+_cmake_import_check_targets\s+(?P<target>[\w:-]+)[\s)]',
r'list\s*\(APPEND\s+_cmake_import_check_files_for_(?P<target>[\w:-]+)\s',
)
import_regexes = [re.compile(regex, re.IGNORECASE) for regex in import_patterns]