rapids_cpm_bs_thread_pool
在版本 v24.08.00 中添加。
允许项目通过 CPM 查找或构建 thread-pool,并内置跟踪这些依赖项以正确支持导出。
使用 thread-pool 在版本文件中指定 的版本,以确保所有 RAPIDS 项目之间的一致性。
rapids_cpm_bs_thread_pool( [BUILD_EXPORT_SET <export-name>]
[INSTALL_EXPORT_SET <export-name>]
[<CPM_ARGS> ...])
BUILD_EXPORT_SET
记录在我们的构建目录导出集中需要一个用于 bs_thread_pool 的
CPMFindPackage()
。INSTALL_EXPORT_SET
记录在我们的安装目录导出集中需要一个用于 bs_thread_pool 的
find_dependency()
。
注意
如果在提供了 INSTALL_EXPORT_SET 并且 bs_thread_pool 通过 add_subdirectory
由 CPM 添加到项目时,bs_thread_pool 将被安装。
CPM_ARGS
在 CPM_ARGS 之后的任何参数都将被转发到底层的 bs_thread_pool
CPMFindPackage`()
调用。
结果目标
BS::thread_pool 目标将被创建
结果变量
bs_thread_pool_SOURCE_DIR
设置为 thread-pool 的源目录路径。bs_thread_pool_BINARY_DIR
设置为 thread-pool 的构建目录路径。bs_thread_pool_ADDED
如果之前未添加 thread-pool,则设置为真值。bs_thread_pool_VERSION
设置为 versions.json 指定的 thread-pool 版本。