update cmake flags