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