conan-io / hooks

Official Conan client hooks
MIT License
32 stars 46 forks source link

[conan-center] Avoid collect_libs usage #424

Open uilianries opened 2 years ago

uilianries commented 2 years ago

The collect_libs is tentative as it makes our recipes much easier, however, it comes with a salt price.

SpaceIm commented 1 year ago

Currently it's impossible to ban collect_libs(), it can be very hard to predict lib name based on:

Was there a discussion in conan team about issue we encounter in conan-center? For example, see https://github.com/conan-io/conan/issues/12336#issuecomment-1283739080 for the reason why it's almost impossible currently to predict lib name for windows clang flavors when upstream CMakeLists create lib names based on MSVC variable. It leads to endless PR trying to fix a flavor and breaking another (or even MinGW gcc).