New in version v21.10.00.
Allow projects to find or build nvbench via CPM with built-in tracking of these dependencies for correct export support.
Uses the version of nvbench specified in the version file for consistency across all RAPIDS projects.
rapids_cpm_nvbench( [BUILD_EXPORT_SET <export-name>] [<CPM_ARGS> ...])
Record that a
CPMFindPackage(nvbench)call needs to occur as part of our build directory export set.
Any arguments after CPM_ARGS will be forwarded to the underlying
RAPIDS-cmake will error out if an INSTALL_EXPORT_SET is provided, as nvbench doesn’t provide any support for installation.
nvbench::nvbench target will be created
nvbench::main target will be created
nvbench_SOURCE_DIRis set to the path to the source directory of nvbench.
nvbench_BINARY_DIRis set to the path to the build directory of nvbench.
nvbench_ADDEDis set to a true value if nvbench has not been added before.
nvbench_VERSIONis set to the version of nvbench specified by the versions.json.