update cmake build script