Skip to content

Commit

Permalink
[cpt] Do not look for a CMAKE env variable.
Browse files Browse the repository at this point in the history
We used to depend on it back in the days where cmake v3.6 was luxory.
  • Loading branch information
vgvassilev committed Jul 14, 2019
1 parent d9e4f80 commit 1e79862
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tools/packaging/cpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,6 @@ def check_ubuntu(pkg):
else:
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'):
print(pkg.ljust(20) + '[OUTDATED VERSION (<3.4.3)]'.ljust(30))
else:
Expand Down Expand Up @@ -997,7 +996,6 @@ def check_redhat(pkg):
else:
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'):
print(pkg.ljust(20) + '[OUTDATED VERSION (<3.4.3)]'.ljust(30))
else:
Expand Down Expand Up @@ -1475,7 +1473,6 @@ def check_mac(pkg):
else:
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].split('-')[0], '3.4.3'):
print(pkg.ljust(20) + '[OUTDATED VERSION (<3.4.3)]'.ljust(30))
else:
Expand Down

0 comments on commit 1e79862

Please sign in to comment.