Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
| else() | ||
| list(APPEND TREELITE_LIBS treelite::treelite_static) | ||
| # Installed Treelite packages may only provide the shared library. | ||
| find_package(Treelite ${PKG_VERSION} QUIET CONFIG) |
There was a problem hiding this comment.
This would cause CPM_Treelite_SOURCE to be ignored when an installed Treelite package provides treelite::treelite_static: the early find_package() call creates that target, so rapids_cpm_find() skips CPM rather than using the requested source checkout.
There was a problem hiding this comment.
Could we just set CPM_DOWNLOAD_Treelite to ON in the static branch and leave source selection to rapids_cpm_find()? That would avoid the early find_package() call, preserve CPM_Treelite_SOURCE, and handle shared-only Conda installations. I think always building Treelite from source when static linking is requested is a reasonable trade-off.
Addresses #8262 (comment)
I tested this change by running the following inside the Conda env:
which printed