Set cmake path to CMake object when is changed.