You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
I do not see luarocks setting the $CMAKE_PREFIX_PATH.
I see that luarocks adds the directory to the $PATH and CMake finds the share/torch/TorchConfig.cmake
When I manually run the cmake command line that luarocks runs (with expanded paths) it fails to find Torch since the installation prefix is not in $PATH.
I wonder whether it's a good idea to set CMAKE_PREFIX_PATH="$(LUAROCKS_PREFIX)" in .rockspec.
ac885e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would CMake find files like share/torch/TorchPathsInit.cmake ?
ac885e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usually if you have the install path in $CMAKE_PREFIX_PATH , then it automatically picks up the folder share/cmake/* which has share/cmake/torch/*
ac885e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see
luarocks
setting the$CMAKE_PREFIX_PATH
.I see that
luarocks
adds the directory to the$PATH
and CMake finds theshare/torch/TorchConfig.cmake
When I manually run the
cmake
command line thatluarocks
runs (with expanded paths) it fails to find Torch since the installation prefix is not in$PATH
.I wonder whether it's a good idea to set
CMAKE_PREFIX_PATH="$(LUAROCKS_PREFIX)"
in .rockspec.