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.

[feature] Conan v2: Get back the `self.info.header_only()`

See original GitHub issue

I 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

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
memshardedcommented, Dec 11, 2022

Then all packages from conancenter should be migrated to the new API, because doctest and dependent can’t be installed on 2.0.0.

yes, about 50% of recipes (around 230 out of 460) in conan-center-index have been already updated to self.info.clear()

0reactions
czoidocommented, Dec 13, 2022

@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.

Read more comments on GitHub >

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

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