change call sequence in cmake