Currently cmake Config is installed in ${CMAKE_INSTALL_PREFIX}/share/resilience/cmake and the cmake Targets file inside ${CMAKE_INSTALL_PREFIX}/cmake. Since cmake Config file tries to access the Targets file from the same directory, making the Config file also installed inside in ${CMAKE_INSTALL_PREFIX}/cmake should solve this. For reference, both Config and Target files of kokkos get installed in the directory ${CMAKE_INSTALL_PREFIX}/lib/cmake. The issue came up while trying to use kokkos-resilience in an out-of-tree cmake file.
Currently cmake Config is installed in ${CMAKE_INSTALL_PREFIX}/share/resilience/cmake and the cmake Targets file inside ${CMAKE_INSTALL_PREFIX}/cmake. Since cmake Config file tries to access the Targets file from the same directory, making the Config file also installed inside in ${CMAKE_INSTALL_PREFIX}/cmake should solve this. For reference, both Config and Target files of kokkos get installed in the directory ${CMAKE_INSTALL_PREFIX}/lib/cmake. The issue came up while trying to use kokkos-resilience in an out-of-tree cmake file.