question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'conan create' options

See original GitHub issue

I’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:open
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
niosHDcommented, Feb 5, 2019

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:

  1. Create template with test_package: conan new -t -s foo/0.1
  2. Add the missing shared option by modifying the test_package/conanfile.py.
  3. Build the package: conan create . bar/testing -o shared=True
  4. Lookup what version has been built: 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 with shared=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

1reaction
memshardedcommented, Jul 13, 2021

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found