-
Notifications
You must be signed in to change notification settings - Fork 540
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_BINARY_DIR include to cuml++
build interface include paths
#4018
[FIX] Add Treelite_BINARY_DIR include to cuml++
build interface include paths
#4018
Conversation
@trxcllnt Should I update CMakeLists.txt of Treelite to change |
Codecov Report
@@ Coverage Diff @@
## branch-21.08 #4018 +/- ##
===============================================
Coverage ? 85.47%
===============================================
Files ? 230
Lines ? 18130
Branches ? 0
===============================================
Hits ? 15496
Misses ? 2634
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
@gpucibot merge |
Follow-up to #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: #4023
…aths (rapidsai#4018) This PR fixes an issue causing cuML source builds to fail when CPM adds Treelite. Treelite's generated include path isn't in their `INTERFACE_INCLUDE_DIRECTORIES`, so this path isn't added to the `cuml++` target's include dirs either. The fix is to add Treelite's generated include path to the `cuml++` target. ```shell In file included from _deps/cuml-src/cpp/src/decisiontree/decisiontree_impl.cuh:20, from _deps/cuml-src/cpp/src/decisiontree/decisiontree.cu:22: _deps/treelite-src/include/treelite/tree.h:11:10: fatal error: treelite/version.h: No such file or directory 11 | #include <treelite/version.h> ``` Authors: - Paul Taylor (https://github.com/trxcllnt) Approvers: - Dante Gama Dessavre (https://github.com/dantegd) URL: rapidsai#4018
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
This PR fixes an issue causing cuML source builds to fail when CPM adds Treelite.
Treelite's generated include path isn't in their
INTERFACE_INCLUDE_DIRECTORIES
, so this path isn't added to thecuml++
target's include dirs either. The fix is to add Treelite's generated include path to thecuml++
target.