mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 11:45:30 +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)
|
||||
|
||||
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)
|
||||
if m:
|
||||
return int(m.group(1))
|
||||
|
Loading…
Reference in New Issue
Block a user