From 54a1bd06456111fc0cb9f3bc4e584af76dac5d4d Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Fri, 7 May 2021 14:35:39 -0400 Subject: [PATCH] rapids_export places the build export files in a location CPM can find. This makes finding `rapids_export` packages via `PROJECT_DIR` possible --- export/export.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/export/export.cmake b/export/export.cmake index 3c6dd652..4d8984b7 100644 --- a/export/export.cmake +++ b/export/export.cmake @@ -140,7 +140,7 @@ function(rapids_export type project_name) install(DIRECTORY "${scratch_dir}/" DESTINATION "${install_location}") else() - set(install_location "${PROJECT_BINARY_DIR}/${project_name}") + set(install_location "${PROJECT_BINARY_DIR}") configure_package_config_file("${CMAKE_CURRENT_FUNCTION_LIST_DIR}/template/config.cmake.in" "${install_location}/${project_name}-config.cmake" INSTALL_DESTINATION "${install_location}")