update cmake rules