cmake: add missing resetting flag