Hi,
I don’t know a nice way how to solve this problem, but here is a dirty solution (and it works!).
Find file ‘biuld.ninja’ . For VS2019 it’s in ‘[your_project_dir]\out\build\x64-Release’ directory.
For VS2017 I’ve found it in ‘[your_win_home_dir]\CMakeBuilds\4483b75d-3038-b138-ad88-323c5cdc1522\build\x64-Release’ directory (or Debug if you trying it).
Then you have manually replace in this text file ‘torch-NOTFOUND’ string to full path to your torch.lib (like ‘C$:\libtorch\lib\torch.lib’ (don’t ask me what ‘$’ mean after C, I don’t know. It all experimental, but it work for me.)
Save ‘build.ninja’ file and now you can build and run your project.
Wonderful, isn’t it?