Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Dec 20, 2024
1 parent f521563 commit 7146287
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tools/pnnx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ option(PNNX_COVERAGE "build for coverage" OFF)
# set(Torch_DIR "${Torch_INSTALL_DIR}/share/cmake/Torch")
set(TorchVision_DIR "${TorchVision_INSTALL_DIR}/share/cmake/TorchVision")

set(Python_FIND_REGISTRY "LAST")
set(Python_FIND_FRAMEWORK "LAST")
find_package(Python3 COMPONENTS Interpreter Development)

PNNXProbeForPyTorchInstall()
Expand Down
2 changes: 0 additions & 2 deletions tools/pnnx/cmake/PNNXPyTorch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ function(PNNXProbeForPyTorchInstall)
message(STATUS "Using cached Torch install dir = ${Torch_INSTALL_DIR}")
set(Torch_DIR "${Torch_INSTALL_DIR}/share/cmake/Torch" CACHE STRING "Torch dir" FORCE)
else()
set(Python_FIND_REGISTRY "LAST")
set(Python_FIND_FRAMEWORK "LAST")
#find_package (Python3 COMPONENTS Interpreter Development)
find_package (Python3)
message(STATUS "Checking for PyTorch using ${Python3_EXECUTABLE} ...")
Expand Down

0 comments on commit 7146287

Please sign in to comment.