How to specify the install path when build libtorch?no use cmake-gui

As the title。
thanks

It makes my head big

You can move to a specific folder to and build it there as described here.
Once you’ve built libtorch, you can specify the path with

cmake -DCMAKE_PREFIX_PATH=/absolute/path/to/libtorch ..

when building your project, as described here.

You mean like this?

python setup.py build

cd build

cmake -DCMAKE_PREFIX_PATH=/absolute/path/to/libtorch ..

cd ..

python setup.py install

This is very troublesome,and when I exec python setup.py install,It also compiles some files