diff --git a/rapids-cmake/cpm/bs_thread_pool.cmake b/rapids-cmake/cpm/bs_thread_pool.cmake index 1bab9165..eda7f322 100644 --- a/rapids-cmake/cpm/bs_thread_pool.cmake +++ b/rapids-cmake/cpm/bs_thread_pool.cmake @@ -71,6 +71,7 @@ function(rapids_cpm_bs_thread_pool) include("${rapids-cmake-dir}/cpm/find.cmake") rapids_cpm_find(bs_thread_pool ${version} ${ARGN} + GLOBAL_TARGETS rapids_bs_thread_pool CPM_ARGS GIT_REPOSITORY ${repository} GIT_TAG ${tag} diff --git a/testing/cpm/cpm_bs_thread_pool-simple.cmake b/testing/cpm/cpm_bs_thread_pool-simple.cmake index 4d11576b..3af63aa6 100644 --- a/testing/cpm/cpm_bs_thread_pool-simple.cmake +++ b/testing/cpm/cpm_bs_thread_pool-simple.cmake @@ -32,3 +32,6 @@ if(NOT TARGET BS::thread_pool) endif() rapids_cpm_bs_thread_pool() + +include(${rapids-cmake-dir}/cpm/generate_pinned_versions.cmake) +rapids_cpm_generate_pinned_versions(OUTPUT ${CMAKE_BINARY_DIR}/versions.json)