Skip to content

Commit

Permalink
Show an error message if CMake does not find CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
puzzlepaint committed Jan 3, 2020
1 parent 120954a commit a9dfe90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -40,6 +40,8 @@ if (CMAKE_CUDA_COMPILER)
set(CMAKE_CUDA_STANDARD 11)
set(CMAKE_CUDA_STANDARD_REQUIRED ON)
endif()
else()
message(FATAL_ERROR "CMake did not find CUDA, which is required to build this program.")
endif()

# Cross-platform threading. See:
Expand Down

0 comments on commit a9dfe90

Please sign in to comment.