TorchLib + CMake + Windows = 0xc0000135
Published:
Passed compiling. Unable to run with exit code 0xc0000135. Turns out that the cmake configuration is slightly different on windows.
Instead of adding “C:\PATH\TO\libtorch” to the CMAKE_PREFIX_PATH, you need to add “C:\PATH\TO\libtorch\lib”.
Added. Problem solved.