Closed mbrobbel closed 4 months ago
Thanks for the PR! I would add a
FORCE
, so that the internal cache variables are updated whenCORROSION_VERBOSE_OUTPUT
is changed.
INTERNAL
implies FORCE
according to https://cmake.org/cmake/help/latest/command/set.html#set-cache-entry:
INTERNAL
... Use of this type implies FORCE.
Ah, true - thanks for catching that. In that case please drop the commit I added.
The value of the
_CORROSION_VERBOSE_OUTPUT_FLAG
variable (set based on theCORROSION_VERBOSE_OUTPUT
option) isn't propagated to the_add_cargo_build
function where it is used: https://github.com/corrosion-rs/corrosion/blob/0a3bdf452995803c334d79dc9a2affbfad51b720/cmake/Corrosion.cmake#L768 Setting it as cache entry fixes that.