Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit cdd0f70

Browse files
committed
fix(windows): remove the typo in preambule and remove duplicated add_compile_definition in windows.cmake
1 parent be07094 commit cdd0f70

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

build2cmake/src/templates/cuda/preamble.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ include(${CMAKE_CURRENT_LIST_DIR}/cmake/windows.cmake)
107107
# This preprocessor macro should be defined in building with MSVC but not for CUDA and co.
108108
# Also, if not using MVSC, this may not be set too ...
109109
# So we explicitly set it to avoid any side effect due to preprocessor-guards not being defined.
110-
add_compile_definitions(_WIN32>)
110+
add_compile_definitions(_WIN32)
111111

112112
# Generate standardized build name
113113
run_python(TORCH_VERSION "import torch; print(torch.__version__.split('+')[0])" "Failed to get Torch version")

build2cmake/src/templates/windows.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Ensure _WIN32 is always defined on Windows
2-
add_compile_definitions(_WIN32)
3-
41
# Generate a standardized build variant name following the pattern:
52
# torch<VERSION>-<ABI>-<COMPUTE>-windows
63
#

0 commit comments

Comments
 (0)