Skip to content

Commit

Permalink
Only apply install rules if we actually downloaded (#507)
Browse files Browse the repository at this point in the history
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: #507
  • Loading branch information
bdice authored Dec 18, 2023
1 parent 208b0d1 commit 252150a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rapids-cmake/cpm/cccl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 252150a

Please sign in to comment.