Skip to content

Commit 2f0aee0

Browse files
author
Han Wang
committed
fix bug: unset cuda toolkit
1 parent 4f2576e commit 2f0aee0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

source/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ endif ()
105105

106106
# define USE_CUDA_TOOLKIT
107107
if (DEFINED USE_CUDA_TOOLKIT)
108-
find_package(CUDA REQUIRED)
108+
if (USE_CUDA_TOOLKIT)
109+
find_package(CUDA REQUIRED)
110+
else()
111+
message(STATUS "Will not build nv GPU support")
112+
endif()
109113
else()
110114
find_package(CUDA QUIET)
111115
if (CUDA_FOUND)

0 commit comments

Comments
 (0)