rapids_cpm_bs_thread_pool

Added in version v24.08.00.

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

Uses the version of thread-pool specified in the version file for consistency across all RAPIDS projects.

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

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

INSTALL_EXPORT_SET

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

Note

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

CPM_ARGS

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

Result Targets

BS::thread_pool target will be created

Result Variables

bs_thread_pool_SOURCE_DIR is set to the path to the source directory of thread-pool. bs_thread_pool_BINARY_DIR is set to the path to the build directory of thread-pool. bs_thread_pool_ADDED is set to a true value if thread-pool has not been added before. bs_thread_pool_VERSION is set to the version of thread-pool specified by the versions.json.