[feature] Conan v2: Get back the `self.info.header_only()`
See original GitHub issueI think that the header_only()
name is more concise and declarative than self.info.clear()
, so consider to get back this method.
Ref for docs: https://docs.conan.io/en/latest/migrating_to_2.0/recipes.html#the-package-id-method
- I’ve read the CONTRIBUTING guide.
Issue Analytics
- State:
- Created 9 months ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Header-only packages — conan 2.0.0-beta documentation
Our header-only library is this simple function that sums two numbers: include/sum.h¶ ... We have a package_id() method calling self.info.clear() .
Read more >Conan.io and header-only library - cmake - Stack Overflow
Here are some answers for your case: Should I use self.copy in package() method or cpp_info.includedirs? What's the difference?
Read more >Advanced Dependencies Model in Conan 2.0 C, C++ ...
Join The ACCU Membership For Exclusive Benefits, Discounts & Reduced Conference Ticket ...
Read more >Writing reusable base recipes for conan.io packages
These days writing a C++ library, either be it a header only library or ... cmake.build() def package(self): self.copy("*.h", dst="include", ...
Read more >RapidJSON: Main Page
Its performance can be comparable to strlen() . ... RapidJSON is self-contained and header-only. ... More information about JSON can be obtained at....
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 FreeTop 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
Top GitHub Comments
yes, about 50% of recipes (around 230 out of 460) in conan-center-index have been already updated to
self.info.clear()
@leha-bot thanks a lot for the suggestion, I’m closing this as I also think that we should keep the
self.info.clear()
that is more generic.