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.

[question] How to make option `shared` true by default when using conanfile.txt?

See original GitHub issue

How to make option shared true by default?

Because a header only lib doesn’t support option shared, it can’t be set in profile. For preference, how to make option shared true by default?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
czoidocommented, Sep 1, 2021

*:shared=True is ok Will *:shared=True lead to failure if some lib doens’t have option shared?

No, the option should be ignored if the recipe does not add it. I’m closing the issue as the problem seems solved, please feel free to reopen if you have further questions.

0reactions
playgithubcommented, Sep 1, 2021

*:shared=True is ok Will *:shared=True lead to failure if some lib doens’t have option shared?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[bug] option shared as True in default profiles not work #9397
The log show that option shared is "True", but the result is a static lib, ... Using cmake global configuration -- Conan: Adjusting...
Read more >
conanfile.txt — conan 1.53.0 documentation
List of options scoped for each package like package_name:option = Value. [requires] poco/1.9.4 zlib/1.2.11 [generators] cmake [options] poco:shared=True ...
Read more >
What is the difference between conanfile.py ... - Stack Overflow
The files are: conanfile.py is a Conan "recipe". It declares dependencies, how to build a package from sources. The same recipe can be...
Read more >
Using Conan in a real-world complex project - Kristian Jerpetjøn
At IncludeOS we're building a library operating system for embedded and servers using conan.In this talk we'll show you how we utilize conan ......
Read more >
Using Conan for Qt6 - Qt Wiki
1 Conan package manager · 2 Prerequisites · 3 Installing Conan · 4 Conan configuration · 5 Connecting to Conan remote · 6...
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