fix a cmake endif warning