Solved by albanD in post #2 
              
              
                Hi, 
Why are you building with CMake directly? If you want to do a python install, you should be using setup.py and the USE_CUDA flag will be properly picked up in that case. 
If you are trying to do a libtorch install (I am not sure what is the process supposed to be), it might be that the flag is …