From 1f880a6b622eb8706f60484fac0387c64585f305 Mon Sep 17 00:00:00 2001 From: Andrey Talman Date: Mon, 17 Feb 2025 21:37:25 -0500 Subject: [PATCH] Enable 3.13t builds on Windows See documentation: https://cmake.org/cmake/help/latest/module/FindPython3.html Successful workflow: https://github.com/pytorch/test-infra/actions/runs/13381336461/job/37371953479?pr=6 --- cmake/TorchAudioHelper.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/TorchAudioHelper.cmake b/cmake/TorchAudioHelper.cmake index 3379e68f11..d000483e37 100644 --- a/cmake/TorchAudioHelper.cmake +++ b/cmake/TorchAudioHelper.cmake @@ -57,6 +57,7 @@ if (BUILD_TORCHAUDIO_PYTHON_EXTENSION) find_library(TORCH_PYTHON_LIBRARY torch_python PATHS "${TORCH_INSTALL_PREFIX}/lib") if (WIN32) + set (Python3_FIND_ABI "ANY" "ANY" "ANY" "ANY") find_package(Python3 ${PYTHON_VERSION} EXACT COMPONENTS Development) set(ADDITIONAL_ITEMS Python3::Python) endif()