Unverified Commit 7e58236c authored by Quan (Andy) Gan's avatar Quan (Andy) Gan Committed by GitHub
Browse files

[Build] Fix NCCL building crashes when using submodules but with system NCCL installed (#2975)

parent 75ec5826
...@@ -162,11 +162,12 @@ if(USE_CUDA) ...@@ -162,11 +162,12 @@ if(USE_CUDA)
if (USE_SYSTEM_NCCL) if (USE_SYSTEM_NCCL)
include(cmake/util/FindNccl.cmake) include(cmake/util/FindNccl.cmake)
include_directories(${NCCL_INCLUDE_DIR})
else() else()
include(cmake/modules/NCCL.cmake) include(cmake/modules/NCCL.cmake)
cuda_include_directories(BEFORE ${NCCL_INCLUDE_DIR})
endif() endif()
include_directories(${NCCL_INCLUDE_DIR})
list(APPEND DGL_LINKER_LIBS ${NCCL_LIBRARY}) list(APPEND DGL_LINKER_LIBS ${NCCL_LIBRARY})
endif(USE_CUDA) endif(USE_CUDA)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment