update CMake and Go code