Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremykubica committed Sep 14, 2023
1 parent 8021310 commit 7676d40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ endif()

project(search LANGUAGES CXX)

# Check if we can compile CUDA on this system.
# Check if we can compile CUDA on this system. We have both the
# CUDA toolkit and the GPU.
include(CheckLanguage)
check_language(CUDA)

if(CMAKE_CUDA_COMPILER)
if(CMAKE_CUDA_COMPILER AND DEFINED CMAKE_CUDA_ARCHITECTURES)
set(HAVE_CUDA 1)
enable_language(CUDA)
add_definitions(-DHAVE_CUDA=1)
Expand Down

0 comments on commit 7676d40

Please sign in to comment.