Skip to content
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

Adapt to CMake policy CMP0146, FindCUDA.cmake removed #25

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

mrguilima
Copy link

@mrguilima mrguilima commented Jan 29, 2024

The CMake module FindCUDA has been removed by CMP0146.
This commit removes the use of find_package(CUDA 8.0 REQUIRED), while declaring CUDA as a top-level language in the project, if enabled by the user.

Copy link
Member

@amadio amadio left a comment

Choose a reason for hiding this comment

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

The idea of modernizing CUDA support is good, but as is I think it will not work. At least the call to find_package(VecCore COMPONENTS CUDA) needs to work when CUDA component is requested, by maybe calling enable_language(CUDA) or checking that it's enabled, and adding the proper includes/compile flags to the VecCore interface library.

CMakeLists.txt Outdated Show resolved Hide resolved
cmake/VecCoreConfig.cmake.in Show resolved Hide resolved
@amadio
Copy link
Member

amadio commented Apr 8, 2024

@mrguilima I made some minor changes to your commit, and merged the commits into a single one. Sorry for taking long to process this, XRootD/EOS keep me quite busy.

@amadio amadio merged commit 743566f into root-project:master Apr 8, 2024
8 checks passed
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.

2 participants