Revise version code for cmake.