diff --git a/cpp/cmake/modules/raft_export.cmake b/cpp/cmake/modules/raft_export.cmake index c7c81886e2..b9a8bc6170 100644 --- a/cpp/cmake/modules/raft_export.cmake +++ b/cpp/cmake/modules/raft_export.cmake @@ -210,6 +210,10 @@ function(raft_export type project_name) file(MAKE_DIRECTORY "${scratch_dir}") install(DIRECTORY "${scratch_dir}" DESTINATION "${install_location}" COMPONENT raft_${comp}) + if(EXISTS "${scratch_dir}/raft-${comp}-dependencies.cmake") + install(FILES "${scratch_dir}/raft-${comp}-dependencies.cmake" DESTINATION "${install_location}" + COMPONENT raft) + endif() endforeach() else()