Skip to content

Fix CMake export target.#12238

Merged
trivialfis merged 2 commits into
dmlc:masterfrom
trivialfis:fix-cmake-export
Jun 9, 2026
Merged

Fix CMake export target.#12238
trivialfis merged 2 commits into
dmlc:masterfrom
trivialfis:fix-cmake-export

Conversation

@trivialfis

Copy link
Copy Markdown
Member

Close #12234

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the generated xgboost-config.cmake package config so that downstream consumers no longer use the deprecated FindCUDA.cmake-based dependency lookup when linking against a static CUDA-enabled XGBoost build.

Changes:

  • Replace find_dependency(CUDA) with find_dependency(CUDAToolkit) in the installed CMake package config.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cmake/xgboost-config.cmake.in

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread cmake/xgboost-config.cmake.in
@trivialfis
trivialfis requested a review from RAMitchell June 9, 2026 11:01
@trivialfis
trivialfis merged commit 5ebf72a into dmlc:master Jun 9, 2026
81 checks passed
@trivialfis
trivialfis deleted the fix-cmake-export branch June 9, 2026 14:06
@jakirkham

Copy link
Copy Markdown
Contributor

Thanks Jiaming and Hyunsu! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecated usage of FindCUDA.cmake in xgboost-config.cmake.in

4 participants