'conan create' options
See original GitHub issueI’m trying to create a package. If it does not have test_package
folder, options in
conan create . user/channel -o option1=value1 -o option2=value2 ...
apply to the package itself. But if test_package
is present, the same command line will try to set options for test_package, not the package itself! To work around this one should use
conan create . user/channel -o MyPackage:option1=value1 -o MyPackage:option2=value2 ...
I think this not very correct behaviour. Don’t you?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
conan create — conan 1.43.4 documentation
The --build-require , new in Conan 1.37, is experimental. It allows to create the package using the configuration and settings of the “build”...
Read more >CONAN CHEAT SHEET - JFrog
Create package from recipe for one configuration. Also implicitly does install and export steps. $ conan create . -pr <profile>. Upload a Package....
Read more >Add fPIC option to a Conan Recipe
Add fPIC option to a Conan Recipe¶ ... At a certain point, we realized we should be adding fPIC option for many packages...
Read more >Conan Package Manager in Practice - GitHub Pages
Software Developer :: Conan Team ... convert conan variables into build-system files ... conantoolchain.cmake (variables translated from conan settings).
Read more >Conan packages in the Package Registry - 极狐 GitLab 文档
Build a Conan package · Install Conan · Install CMake · Create a project · Build a package · Add the Package Registry...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I just stumbled across the same issue with options when I tried to create a package as shared with
-o shared=True
.Steps to reproduce:
conan new -t -s foo/0.1
test_package/conanfile.py
.conan create . bar/testing -o shared=True
conan search foo/0.1@bar/testing
For me this yields a package with
shared=False
. Without the test_package, on the other hand, everything works as expected and I get a package withshared=True
. (e.g.,conan new -s foo/0.1 && conan create . bar/testing -o shared=True && conan search foo/0.1@bar/testing
)Conan Version: 1.12.1
@guiserle yes this is going to be changed in Conan 2.0
This ongoing work for 1.39 is related: https://github.com/conan-io/conan/pull/9267