Commit 93818fd7 authored by Ehsan Azarnasab's avatar Ehsan Azarnasab

only change option key and not its value, which could be case sensitive.

make sure --cmake can be used to pass any cmake not in the path.
parent 9e4fe65c
......@@ -71,16 +71,17 @@ def _get_options():
# parse commandline options and consume those we care about
for opt_idx, arg in enumerate(sys.argv):
if not arg.startswith('--'):
continue
opt = arg[2:].lower()
if opt_key == 'cmake':
_cmake_path = opt
if opt_key:
sys.argv.remove(arg)
continue
if not arg.startswith('--'):
continue
opt = arg[2:].lower()
if opt == 'cmake':
_cmake_path = None
opt_key = opt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment