hooks icon indicating copy to clipboard operation
hooks copied to clipboard

[conan-center] Avoid collect_libs usage

Open uilianries opened this issue 3 years ago • 1 comments

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

  • For users, is not clear the exported libraries names, need to check the package folder or build output
  • For maintainers is not clear which library is exported according the profile (Release, Debug, shared ...)
  • When having inter dependency, it may fail because that method uses alphabetic order to sort the libraries list

uilianries avatar May 31 '22 11:05 uilianries

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

  • the logic in upstream build files
  • informations available in user profile

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

SpaceIm avatar Jan 15 '23 16:01 SpaceIm