mirror of
https://github.com/Relintai/godot-mono-builds.git
synced 2024-11-12 10:25:10 +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():
|
||||
from distutils.version import StrictVersion
|
||||
from distutils.version import LooseVersion
|
||||
from os import listdir
|
||||
|
||||
sdk_cmake_basedir = path_join(ANDROID_SDK_ROOT, 'cmake')
|
||||
@ -123,7 +123,7 @@ def android_autodetect_cmake():
|
||||
for entry in listdir(sdk_cmake_basedir):
|
||||
if isdir(path_join(sdk_cmake_basedir, entry)):
|
||||
try:
|
||||
version = StrictVersion(entry)
|
||||
version = LooseVersion(entry)
|
||||
versions += [version]
|
||||
except ValueError:
|
||||
continue # Not a version folder
|
||||
|
Loading…
Reference in New Issue
Block a user