rapidsai / rapids-cmake

https://docs.rapids.ai/api/rapids-cmake/stable/
Apache License 2.0
27 stars 45 forks source link

[FEA] Investigate if `rapids-cmake` cpm overrides can work with `CPM_SOURCE_CACHE` #550

Open robertmaynard opened 6 months ago

robertmaynard commented 6 months ago

Is your feature request related to a problem? Please describe. The CPM_SOURCE_CACHE variable allows for users/envs to describe where to checkout out source code. In theory this should still work with rapids-cmake overrides as it only controls where a git clone occurs.

But currently rapids_cpm_package_override fixes the source tree location due to directly calling FetchContent_Declare instead of the higher level CPM function.

Describe the solution you'd like We should investigate using CPM to register the override information that should ensure we respect CPM_SOURCE_CACHE.