Fixed cmake CUDA target defines

This commit is contained in:
Bartek Kryza
2024-05-01 21:27:33 +02:00
parent 35b66beeca
commit 1a3d1c19cf
3 changed files with 5 additions and 5 deletions

View File

@@ -162,9 +162,6 @@ option(ENABLE_CUDA_TEST_CASES "" OFF)
if(ENABLE_CUDA_TEST_CASES)
include(CheckLanguage)
check_language(CUDA)
if(DEFINED CMAKE_CUDA_COMPILER)
set(ENABLE_CUDA_TEST_CASES ON)
endif(DEFINED CMAKE_CUDA_COMPILER)
endif(ENABLE_CUDA_TEST_CASES)
if(BUILD_TESTS)