fix cmake assertion error