覆盖柯南存储目录

时间:2018-05-30 13:54:31

标签: c++ conan

我正在尝试将conan用于虚拟C ++项目(这里与语言无关),但我不喜欢弄乱用户的主目录。默认情况下,conan install将使用~/conan/data指定的~/conan/conan.conf

[storage]
# This is the default path, but you can write your own. It must be an absolute path or a
# path beginning with "~" (if the environment var CONAN_USER_HOME is specified, this directory, even
# with "~/", will be relative to the conan user home, not to the system user home)
path = ~/.conan/data

有没有办法覆盖存储目录到本地目录?

我尝试在我创建的配置文件中添加[storage]部分,但显然conan不喜欢它(`错误:错误读取'./locally'配置文件:ConfigParser:无法识别的字段'存储')。

0 个答案:

没有答案