Skip to content

Commit

Permalink
Reset options cache for generated cmake
Browse files Browse the repository at this point in the history
The options for the generated cmake can be specified by the python
interface, but cannot unset. Subsequent generations of a sim
and an ocp solver lib would therefore interfere, through reused
cmake cache. This can be prevented by removing these options from
the cmake cache.
  • Loading branch information
Caspar Gruijthuijsen committed Sep 20, 2023
1 parent 263f0ea commit 83fbb54
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,3 +397,9 @@ if(${BUILD_ACADOS_SIM_SOLVER_LIB})
endif(${BUILD_ACADOS_SIM_SOLVER_LIB})
{%- endif %}

# unset options for clean cmake cache on subsequent cmake runs
unset(BUILD_ACADOS_SOLVER_LIB CACHE)
unset(BUILD_ACADOS_OCP_SOLVER_LIB CACHE)
unset(BUILD_EXAMPLE CACHE)
unset(BUILD_SIM_EXAMPLE CACHE)
unset(BUILD_ACADOS_SIM_SOLVER_LIB CACHE)

0 comments on commit 83fbb54

Please sign in to comment.