If I install pytorch with conda the relevant cmake files fro find_package are not stored in the default folder that cmake checks. The only way for me to make it work is to specificaly set the CMAKE_PREFIX_PATH.
This is unfortunate as it is python version dependent and any update would require to also change the Cmake file. Is there any way around that? Could the conda package just add the files to the default CMAKE_PREFIX_PATH?