Skip to content

Commit

Permalink
find PYTHON_VERSION first
Browse files Browse the repository at this point in the history
  • Loading branch information
Caroline Chen committed Mar 5, 2021
1 parent 07ca402 commit 0b76f5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torchaudio/csrc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ if (BUILD_TORCHAUDIO_PYTHON_EXTENSION)
find_library(TORCH_PYTHON_LIBRARY torch_python PATHS "${TORCH_INSTALL_PREFIX}/lib")

if (WIN32)
set(Python_ADDITIONAL_VERSIONS ${PYTHON_VERSION} 3.9 3.8 3.7 3.6)
find_package(Python3 COMPONENTS Development)
set(ADDITIONAL_ITEMS Python3::Python)
endif()
Expand Down

0 comments on commit 0b76f5f

Please sign in to comment.