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

Add toolset_cuda conf for cmaketoolchain #15572

Merged

Conversation

jcar87
Copy link
Contributor

@jcar87 jcar87 commented Jan 31, 2024

Changelog: Feature: Add configuration to specify desired CUDA Toolkit in CMakeToolchain for Visual Studio CMake generators.
Docs: conan-io/docs#3568

This allows to append the cuda=xxx key to CMAKE_GENERATOR_TOOLSET (docs) This is useful for a couple of cases:

  • CUDA Toolkit is installed on a system location ("Program Files") and the user wants to select a specific version
  • CUDA Toolkit is in a Conan recipe, and we want to define this in the package_info such that CMake will correctly use that toolkit for a CMake project on Windows with MSVC

Tests incoming!

@jcar87 jcar87 marked this pull request as ready for review February 1, 2024 09:39
@jcar87 jcar87 requested a review from memsharded February 1, 2024 09:39
@jcar87 jcar87 changed the title Add toolset_cuda conf for cmaketoolchain (WIP) Add toolset_cuda conf for cmaketoolchain Feb 1, 2024
@memsharded memsharded added this to the 2.1 milestone Feb 1, 2024
conans/model/conf.py Outdated Show resolved Hide resolved
Co-authored-by: James <memsharded@gmail.com>
@memsharded memsharded merged commit 5cf93f3 into conan-io:develop2 Feb 1, 2024
2 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.

3 participants