Ignore that, that was for some workaround to get early alpha package working. In recent versions, you don’t need to do that. You can simply do below:
list(APPEND CMAKE_PREFIX_PATH "<libtorch-path>")
find_package(Torch REQUIRED)