Skip to content

Conversation

@SimonRit
Copy link
Collaborator

CMake "option" only allows boolean ON|OFF values to be set as cmake CACHE variables. The
value of CUDACOMMON_CUDA_VERSION is expected to be a VERSION string like 12.9 or 11.2 which is not
compatible with the cmake "option".

The subsequent
find_package(CUDAToolkit EXACT ${CUDACOMMON_CUDA_VERSION})

Requires the value after EXACT to be a valid version string (i.e. ON or OFF are invalid choices).

If not set from the command line, default the value of CUDACOMMON_CUDA_VERSION to the version that was previously found.

CMake "option" only allows boolean ON|OFF values to
be set as cmake CACHE variables.  The
value of CUDACOMMON_CUDA_VERSION is expected to be
a VERSION string like 12.9 or 11.2 which is not
compatible with the cmake "option".

The subsequent
find_package(CUDAToolkit EXACT ${CUDACOMMON_CUDA_VERSION})

Requires the value after EXACT to be a valid version
string (i.e. ON or OFF are invalid choices).

If not set from the command line, default the value
of CUDACOMMON_CUDA_VERSION to the version that was
previously found.
@SimonRit SimonRit merged commit 7d446f4 into RTKConsortium:main Nov 13, 2025
12 checks passed
@SimonRit SimonRit deleted the CUDACOMMON_CUDA_VERSION branch November 13, 2025 15:19
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