Skip to content

Commit

Permalink
aedi: support keeping of cmake module targets without namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Jul 20, 2023
1 parent 5d7cdb4 commit 2d47d70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aedi/target/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,8 @@ def post_build(self, state: BuildState):

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]

Expand Down

0 comments on commit 2d47d70

Please sign in to comment.