From 252150a6def1396c392619e18013476bb1c00b56 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Mon, 18 Dec 2023 09:03:50 -0600 Subject: [PATCH] Only apply install rules if we actually downloaded (#507) This fixes `rapids_cpm_cccl` to only call the logic for install rules if CCCL was downloaded. Authors: - Bradley Dice (https://github.com/bdice) - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - Robert Maynard (https://github.com/robertmaynard) URL: https://github.com/rapidsai/rapids-cmake/pull/507 --- rapids-cmake/cpm/cccl.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rapids-cmake/cpm/cccl.cmake b/rapids-cmake/cpm/cccl.cmake index 3139e7dc..a7e35313 100644 --- a/rapids-cmake/cpm/cccl.cmake +++ b/rapids-cmake/cpm/cccl.cmake @@ -92,7 +92,7 @@ function(rapids_cpm_cccl) EXCLUDE_FROM_ALL ${exclude} OPTIONS "CCCL_ENABLE_INSTALL_RULES ${to_install}") - if(to_install) + if(CCCL_SOURCE_DIR AND to_install) # CCCL does not currently correctly support installation of cub/thrust/libcudacxx. The only # option that makes this work is to manually invoke the install rules until CCCL's CMake is # fixed.