revise cmake script