Fix OSX where cmake version is '3.14.0-rc4'

This commit is contained in:
lizhangwen 2019-04-01 00:11:58 +08:00 committed by SFT
parent 435d2352e5
commit 314018e6db

@ -1498,7 +1498,7 @@ def check_mac(pkg):
print(pkg.ljust(20) + '[OK]'.ljust(30))
elif pkg == "cmake":
CMAKE = os.environ.get('CMAKE', 'cmake')
if not check_version_string_ge(exec_subprocess_check_output('{cmake} --version'.format(cmake=CMAKE), '/').strip().split('\n')[0].split()[-1], '3.4.3'):
if not check_version_string_ge(exec_subprocess_check_output('{cmake} --version'.format(cmake=CMAKE), '/').strip().split('\n')[0].split()[-1].split('-')[0], '3.4.3'):
print(pkg.ljust(20) + '[OUTDATED VERSION (<3.4.3)]'.ljust(30))
else:
print(pkg.ljust(20) + '[OK]'.ljust(30))