如何在Windows上备份cmake gui的生成器缓存/设置? [英] How to backup the generator cache/settings for cmake gui on windows?

查看:123
本文介绍了如何在Windows上备份cmake gui的生成器缓存/设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一个供内部使用的opencv模块,我们不希望将完整的opencv签入TFS.

We are developing a module for opencv to use internal and we would like not to check in the full opencv to TFS.

有什么方法可以保存cmake gui应用程序中的所有设置,例如当新开发人员加入团队时,他可以轻松地下载opencv并包括用于生成解决方案文件的设置吗?

Is there any way to save all the settings from the cmake gui application such when a new developer joins the team he can easily just download opencv and include the settings for generating the solution files?

推荐答案

您的构建目录中有一个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.

这篇关于如何在Windows上备份cmake gui的生成器缓存/设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆