Skip to content

Commit

Permalink
#2217 make sure we build in release by default
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Nov 9, 2022
1 parent ea839be commit dbc8318
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeBuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ def run(self):
use_python_casadi = False
else:
use_python_casadi = True

build_type = os.getenv("PYBAMM_CPP_BUILD_TYPE", "Release")
cmake_args = [
"-DCMAKE_BUILD_TYPE={}".format(build_type),
"-DPYTHON_EXECUTABLE={}".format(sys.executable),
"-DUSE_PYTHON_CASADI={}".format("TRUE" if use_python_casadi else "FALSE"),
]
Expand Down

0 comments on commit dbc8318

Please sign in to comment.