update cmake variables too