conan-io / hooks

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

Add a post_package_info hook to check `cpp_info.resdirs` #482

Open SpaceIm opened 1 year ago

SpaceIm commented 1 year ago

see https://github.com/conan-io/conan-center-index/issues/15581 & https://github.com/conan-io/conan-center-index/issues/15599#issuecomment-1410808888

When a recipe is migrated to layout(), cpp_info.resdirs is empty by default instead of ["res"]. For most recipe it's fine and a good default, but few recipes now need to set this attribute explicitly.

I propose this hook: