Skip to content

Commit

Permalink
[CMake] Add CUDA include path
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Jul 24, 2024
1 parent 411c846 commit 3bb9f6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/Utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ function(xgboost_set_cuda_flags target)
target_include_directories(
${target} PRIVATE
${xgboost_SOURCE_DIR}/gputreeshap)
target_include_directories(
${target} SYSTEM PRIVATE
${CUDAToolkit_INCLUDE_DIRS})

if(MSVC)
target_compile_options(${target} PRIVATE
Expand Down

0 comments on commit 3bb9f6b

Please sign in to comment.