Commit 08f04ef6 authored by Helen Schottenhamml's avatar Helen Schottenhamml
Browse files

Merge branch 'FixDefaultCodeGen' into 'master'

Fix: default construction of code generation context

See merge request walberla/walberla!504
parents 09ba6cf0 1feafb15
......@@ -64,9 +64,9 @@ def parse_json_args():
expected_files = parsed['EXPECTED_FILES']
cmake_vars = {}
for key, value in parsed['CMAKE_VARS'].items():
if value.lower() in ("on", "1", "yes", "true"):
if str(value).lower() in ("on", "1", "yes", "true"):
value = True
elif value.lower() in ("off", "0", "no", "false"):
elif str(value).lower() in ("off", "0", "no", "false"):
value = False
cmake_vars[key] = value
return expected_files, cmake_vars
......
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