Only pass nonempty options to cmake