Commit a2cd5d44 authored by Ehsan Azarnasab's avatar Ehsan Azarnasab

remove used options from argv

parent e8b16101
...@@ -59,7 +59,12 @@ script_dir = os.getcwd() ...@@ -59,7 +59,12 @@ script_dir = os.getcwd()
cmake_path = find_executable("cmake") cmake_path = find_executable("cmake")
cmake_extra = [] cmake_extra = []
cmake_config = 'Release' cmake_config = 'Release'
options = [arg[2:].lower() for arg in sys.argv if arg.startswith('--')]
options = []
for arg in sys.argv:
if arg.startswith('--'):
sys.argv.remove(arg)
options.append(arg[2:].lower())
opt_key = None opt_key = None
# parse commandline options # parse commandline options
......
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