Torch 1.5 c++ front end: torch::cuda::is_available() = false?

I just installed torch 1.5 c++ front end (Windows, Visual Studio 2019). Cuda 10.1, latest
nvidia drivers. This is in DEBUG version of the library.

Following code:

main() {
CudaPresent = torch::cuda::is_available();

CudaPresent is FALSE.

When I use torch 1.4 C++ front end, everything else is the same on the same PC, code is working fine
and returns CudaPresent = TRUE

Any help super appreciated.