"docs/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "2583ec5934c2153a1088f16a35b7c9303598ac79"
Unverified Commit 0bf51a16 authored by czkkkkkk's avatar czkkkkkk Committed by GitHub
Browse files

[Sparse] Fix the NOMINMAX problem on Windows. (#6818)

parent e42c7fcd
...@@ -27,6 +27,11 @@ if(USE_CUDA) ...@@ -27,6 +27,11 @@ if(USE_CUDA)
enable_language(CUDA) enable_language(CUDA)
endif() endif()
# For windows, define NOMINMAX to avoid conflict with std::min/max
if(MSVC)
add_definitions(-DNOMINMAX)
endif()
set(Torch_DIR "${TORCH_PREFIX}/Torch") set(Torch_DIR "${TORCH_PREFIX}/Torch")
message(STATUS "Setting directory to ${Torch_DIR}") message(STATUS "Setting directory to ${Torch_DIR}")
find_package(Torch REQUIRED) find_package(Torch REQUIRED)
......
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