Hey, we don’t provide static libs currently. You’ll have to build that from source.

Let me rephrase what I wanted to say…
What I want to do is to create successful static version of libtorch.
I have built the static  libtorch from source with “set BUILD_SHARED_LIBS=OFF” BUT

cuffe2_nvrtc.lib is NOT created.
caffe2_nvrtc.dll is created under torch/bin.

My assumption is below.
“SHARED” is set in add_library and because of that, DLL is created.  At the same time,
BUILD_SHARED_LIBS=OFF and dllexport is not defined and lib is not created. Files under lib are linked to the application and error occurs.
I now know by using official caffe2_nvrtc.lib and caffe2_nvrtc.dll, the application succeeds.
I’d like to know how to create static libtorch library.
I’ve done rewriting CMakeList.txt and built static version of libtorch and

caffe2_nvrtc.lib is created (and this should be static lib, right?)
caffe2_nvrtc.dll is NOT created.

By linking above to the app, it will end up with the error I wrote in the beginning.
By placing official caffe2_nvrtc.dll next to the app, it works. (meaning static lib is not created correctly ?)
Any suggestion to succeed my attempt?