mirror of https://github.com/davisking/dlib.git
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.
This commit is contained in:
parent
9e4fe65c47
commit
93818fd7e4
7
setup.py
7
setup.py
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue