Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
0bf51a16
Unverified
Commit
0bf51a16
authored
Dec 25, 2023
by
czkkkkkk
Committed by
GitHub
Dec 25, 2023
Browse files
[Sparse] Fix the NOMINMAX problem on Windows. (#6818)
parent
e42c7fcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
dgl_sparse/CMakeLists.txt
dgl_sparse/CMakeLists.txt
+5
-0
No files found.
dgl_sparse/CMakeLists.txt
View file @
0bf51a16
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment