diff --git a/autospec/buildreq.py b/autospec/buildreq.py index e0235aac..b8d5c9fa 100644 --- a/autospec/buildreq.py +++ b/autospec/buildreq.py @@ -508,7 +508,7 @@ def parse_cmake(self, filename, cmake_modules, conf32): """Scan a .cmake or CMakeLists.txt file for what's it's actually looking for.""" findpackage = re.compile(r"^[^#]*find_package\((\w+)\b.*\)", re.I) findpackage_multiline = re.compile(r"^[^#]*find_package\((\w+)\b.*", re.I) - pkgconfig = re.compile(r"^[^#]*pkg_check_modules\s*\(\w+ (.*)\)", re.I) + pkgconfig = re.compile(r"^[^#]*pkg_check_modules\s*\([\w\-]+ (.*)\)", re.I) pkg_search_modifiers = {'REQUIRED', 'QUIET', 'NO_CMAKE_PATH', 'NO_CMAKE_ENVIRONMENT_PATH', 'IMPORTED_TARGET'} extractword = re.compile(r'(?:"([^"]+)"|(\S+))(.*)')