From 0538acc0fae6c09846ec2aeda4abb8039f5b7a4c Mon Sep 17 00:00:00 2001 From: "Corey J. Nolet" Date: Tue, 17 May 2022 07:53:46 -0400 Subject: [PATCH] Revert "Don't install component dependency files in raft-header only mode (#655)" This reverts commit ed81462ed66e699d01276251281f9ae365cb0e64. --- cpp/cmake/modules/raft_export.cmake | 4 ++++ 1 file changed, 4 insertions(+) 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()