rapids_cpm_rmm
Added in version v21.10.00.
Allow projects to find or build RMM via CPM with built-in tracking of these dependencies for correct export support.
Uses the current rapids-cmake version of RMM as specified in the version file <cpm_versions> for consistency across all RAPIDS projects.
rapids_cpm_rmm( [BUILD_EXPORT_SET <export-name>]
[INSTALL_EXPORT_SET <export-name>]
[<CPM_ARGS> ...])
BUILD_EXPORT_SETRecord that a
CPMFindPackage()for rmm is required in our build directory export set.INSTALL_EXPORT_SETRecord that a
find_dependency()for rmm is required in our install directory export set.
Note
Installation of rmm will occur if an INSTALL_EXPORT_SET is provided, and rmm
is added to the project via add_subdirectory by CPM.
CPM_ARGSAny arguments after CPM_ARGS will be forwarded to the underlying rmm
CPMFindPackage`()call
Result Targets
rmm::rmm target will be created rmm::rmm_logger target will be created rmm::rmm_logger_impl target will be created
Result Variables
rmm_SOURCE_DIRis set to the path to the source directory of RMM.rmm_BINARY_DIRis set to the path to the build directory of RMM.rmm_ADDEDis set to a true value if RMM has not been added before.rmm_VERSIONis set to the version of RMM specified by the versions.json.