Skip to content
Snippets Groups Projects
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
No related merge requests found
...@@ -64,9 +64,9 @@ def parse_json_args(): ...@@ -64,9 +64,9 @@ def parse_json_args():
expected_files = parsed['EXPECTED_FILES'] expected_files = parsed['EXPECTED_FILES']
cmake_vars = {} cmake_vars = {}
for key, value in parsed['CMAKE_VARS'].items(): 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 value = True
elif value.lower() in ("off", "0", "no", "false"): elif str(value).lower() in ("off", "0", "no", "false"):
value = False value = False
cmake_vars[key] = value cmake_vars[key] = value
return expected_files, cmake_vars return expected_files, cmake_vars
......
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