mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-10 14:41:43 +00:00
aedi: make cmake project name matching more strict
This commit is contained in:
parent
5275d2a2fb
commit
fe3b42d709
1 changed files with 2 additions and 2 deletions
|
@ -370,11 +370,11 @@ class CMakeTarget(BuildTarget):
|
||||||
project_name = None
|
project_name = None
|
||||||
|
|
||||||
# Try to get project name without whitespaces in it
|
# Try to get project name without whitespaces in it
|
||||||
match = re.search(r'project\s*\(\s*(\w[\w-]+)', line, re.IGNORECASE)
|
match = re.search(r'^\s*project\s*\(\s*(\w[\w-]+)', line, re.IGNORECASE)
|
||||||
|
|
||||||
if not match:
|
if not match:
|
||||||
# Try to get project name that contains whitespaces
|
# Try to get project name that contains whitespaces
|
||||||
match = re.search(r'project\s*\(\s*"?(\w[\s\w-]+)"?', line, re.IGNORECASE)
|
match = re.search(r'^\s*project\s*\(\s*"?(\w[\s\w-]+)"?', line, re.IGNORECASE)
|
||||||
|
|
||||||
if match:
|
if match:
|
||||||
project_name = match.group(1)
|
project_name = match.group(1)
|
||||||
|
|
Loading…
Reference in a new issue