@shyney7
Can you remove “set(CMAKE_MODULE_PATH” line and try again?
If it doesn’t work, I suggest to follow https://pytorch.org/cppdocs/installing.html 4 to create a simple example and make it compiled and then merge the Camke lines into your project.