Remove useless options in cmake.