Problem with newest version of libtorch

I followed the tutorial here to make a c++ front-end application for pytorch:

I used GPU version. I could succesfully cmake and make.

Now I updated to the latest version of libtorch. I can still cmake, but on make, I get the following error:

[willem@int2 build]$ make
make[2]: *** No rule to make target `/sw/arch/RedHatEnterpriseServer7/EB_production/2019/software/cuDNN/', needed by `polIter'.  Stop.
make[1]: *** [CMakeFiles/polIter.dir/all] Error 2
make: *** [all] Error 2

Any ideas on what is causing this?