I want to use libtorch in my project.
The libtorch release the debug/release version:
Download here (Release version):
https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-1.10.2%2Bcu102.zip
Download here (Debug version):
https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-debug-1.10.2%2Bcu102.zip
Both debug/release contain a cmake file. I can seperately use libtorch by provide the libtorch_dir as: libtorch_debug/xx/TorchConfig.cmake or libtorch_release/xx/TorchConfig.cmake.
However, in this way, if I want to switch debug to release in vs, I need to cmake again.
Is it possible to cmake once and switch vs from debug to release?
Any suggestion is appreciated~~~