我正在尝试创建一个名为foo的简单演示头文件库,并需要另一个名为bar的库。
foo的结构是这样的:
foo/include/foo.hpp - 只是一个测试头文件...
foo/conanfile.py
from conans import ConanFile, CMake
class FooConan(ConanFile):
name = "foo"
version = "0.0.1"
exports = "*"
使用以下命令导出:
conan export steazzalini/testing
酒吧/conanfile.txt
[requires]
foo/0.0.1@steazzalini/testing
[generators]
cmake
柯南安装失败说:
ERROR: Can't find a 'foo/0.0.1@steazzalini/testing' package for the specified options and settings
- Try to build from sources with "--build foo" parameter
- If it fails, you could try to contact the package author , report your configuration and try to collaborate to support it.
Package configuration:
- Settings:
- Options:
在此先感谢您的帮助!