mirror of
https://github.com/Relintai/godot-mono-builds.git
synced 2024-11-14 10:27:25 +01:00
Fix android sdk's cmake version autodetect
StrictVersion was failing with 3.10.4988404. Use LooseVersion instead.
This commit is contained in:
parent
5ff3e54b84
commit
9efec19e6b
@ -114,7 +114,7 @@ class AndroidTargetInfo:
|
|||||||
|
|
||||||
|
|
||||||
def android_autodetect_cmake():
|
def android_autodetect_cmake():
|
||||||
from distutils.version import StrictVersion
|
from distutils.version import LooseVersion
|
||||||
from os import listdir
|
from os import listdir
|
||||||
|
|
||||||
sdk_cmake_basedir = path_join(ANDROID_SDK_ROOT, 'cmake')
|
sdk_cmake_basedir = path_join(ANDROID_SDK_ROOT, 'cmake')
|
||||||
@ -123,7 +123,7 @@ def android_autodetect_cmake():
|
|||||||
for entry in listdir(sdk_cmake_basedir):
|
for entry in listdir(sdk_cmake_basedir):
|
||||||
if isdir(path_join(sdk_cmake_basedir, entry)):
|
if isdir(path_join(sdk_cmake_basedir, entry)):
|
||||||
try:
|
try:
|
||||||
version = StrictVersion(entry)
|
version = LooseVersion(entry)
|
||||||
versions += [version]
|
versions += [version]
|
||||||
except ValueError:
|
except ValueError:
|
||||||
continue # Not a version folder
|
continue # Not a version folder
|
||||||
|
Loading…
Reference in New Issue
Block a user