Skip to content
Snippets Groups Projects
Commit 85f2f118 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

CUDA_COMPILER

parent ad77145e
No related branches found
No related tags found
No related merge requests found
Pipeline #3877 passed
......@@ -35,6 +35,9 @@ endif()
if (CUDA_ON_BACKEND STREQUAL "CUDA")
enable_language(CUDA)
include(CheckLanguage)
if (CMAKE_CUDA_COMPILER)
set(CUDA_FOUND ON)
endif()
string(REPLACE "." ";" CUDA_VERSION_LIST ${CMAKE_CUDA_COMPILER_VERSION})
list(GET CUDA_VERSION_LIST 0 CUDA_VERSION_MAJOR)
list(GET CUDA_VERSION_LIST 1 CUDA_VERSION_MINOR)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment