且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Windows上备份cmake gui的生成器缓存/设置?

更新时间:2022-12-25 09:03:11

您的构建目录中有一个CMakeCache.txt文件.它存储在gui应用程序中更改的值. 如果将其复制到新的内部版本并重新加载缓存,则应还原设置,然后可以生成内部版本文件.

There is a CMakeCache.txt file in your build directory. It stores the values changed in the gui application. If you copy this to a new build and reload the cache, the settings should be restored and you can generate the build files.