-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] Add treelite include paths to treelite targets #4023
[FIX] Add treelite include paths to treelite targets #4023
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One quick question, besides that it lgtm
if(Treelite_ADDED AND NOT TARGET treelite::treelite_static) | ||
add_library(treelite::treelite_static ALIAS treelite_static) | ||
add_library(treelite::treelite_runtime_static ALIAS treelite_runtime_static) | ||
if(Treelite_ADDED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be made not conditional on treelite as we were talking about offline?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out Treelite_SOURCE_DIR
and Treelite_BINARY_DIR
aren't populated if Treelite_ADDED
is false.
rerun tests |
@gpucibot merge |
Codecov Report
@@ Coverage Diff @@
## branch-21.08 #4023 +/- ##
===============================================
Coverage ? 85.46%
===============================================
Files ? 230
Lines ? 18133
Branches ? 0
===============================================
Hits ? 15498
Misses ? 2635
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Follow-up to rapidsai#4018, but this time it actually works. Makes `${Treelite_SOURCE_DIR}/include` part of the build interface so users consuming an installed `cuml++` don't get an include path to the build dir. Authors: - Paul Taylor (https://github.com/trxcllnt) Approvers: - Dante Gama Dessavre (https://github.com/dantegd) URL: rapidsai#4023
Follow-up to #4018, but this time it actually works.
Makes
${Treelite_SOURCE_DIR}/include
part of the build interface so users consuming an installedcuml++
don't get an include path to the build dir.