New in version v21.10.00.

Allow projects to find or build spdlog via CPM with built-in tracking of these dependencies for correct export support.

Uses the version of spdlog specified in the version file for consistency across all RAPIDS projects.

rapids_cpm_spdlog( [BUILD_EXPORT_SET <export-name>]
                   [INSTALL_EXPORT_SET <export-name>]
                   [<CPM_ARGS> ...])

Record that a CPMFindPackage() for spdlog is required in our build directory export set.


Record that a find_dependency() for spdlog is required in our install directory export set.


Installation of spdlog will occur if an INSTALL_EXPORT_SET is provided, and spdlog is added to the project via add_subdirectory by CPM.


Any arguments after CPM_ARGS will be forwarded to the underlying spdlog CPMFindPackage`() call

Result Targets

spdlog::spdlog, spdlog::spdlog_header_only targets will be created

Result Variables

spdlog_SOURCE_DIR is set to the path to the source directory of spdlog. spdlog_BINARY_DIR is set to the path to the build directory of spdlog. spdlog_ADDED is set to a true value if spdlog has not been added before. spdlog_VERSION is set to the version of spdlog specified by the versions.json.