mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 20:42:53 +08:00
Merge pull request #22054 from asenyaev:asen/fix_matching_xcode_version
This commit is contained in:
commit
8d51ef0f35
@ -41,7 +41,7 @@ def execute(cmd, cwd = None):
|
|||||||
raise Exception("Child returned:", retcode)
|
raise Exception("Child returned:", retcode)
|
||||||
|
|
||||||
def getXCodeMajor():
|
def getXCodeMajor():
|
||||||
ret = check_output(["xcodebuild", "-version"])
|
ret = check_output(["xcodebuild", "-version"]).decode("utf-8")
|
||||||
m = re.match(r'Xcode\s+(\d+)\..*', ret, flags=re.IGNORECASE)
|
m = re.match(r'Xcode\s+(\d+)\..*', ret, flags=re.IGNORECASE)
|
||||||
if m:
|
if m:
|
||||||
return int(m.group(1))
|
return int(m.group(1))
|
||||||
|
Loading…
Reference in New Issue
Block a user