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

Commit 222dfdf

Browse files
committed
misc(builder): conditionally include add_kernels_install_targets only on windows
1 parent ed9cd73 commit 222dfdf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

build2cmake/src/templates/cuda/torch-extension.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ if( NOT MSVC)
1313
target_link_options({{ ops_name }} PRIVATE -static-libstdc++)
1414
endif()
1515

16+
{% if platform == 'windows' %}
17+
# These methods below should be included from preamble.cmake on windows platform.
18+
1619
# Add kernels_install target for huggingface/kernels library layout
1720
add_kernels_install_target({{ ops_name }} "{{ name }}" "${BUILD_VARIANT_NAME}")
1821

1922
# Add local_install target for local development with get_local_kernel()
2023
add_local_install_target({{ ops_name }} "{{ name }}" "${BUILD_VARIANT_NAME}")
24+
25+
{% endif %}

0 commit comments

Comments
 (0)