Skip to content

Commit

Permalink
move CPM_DOWNLOAD_fmt set to get_nvbench.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwendt committed Feb 10, 2023
1 parent ac8ad10 commit b0335e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 2 additions & 4 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -784,11 +784,9 @@ if(CUDF_BUILD_BENCHMARKS)
include(${rapids-cmake-dir}/cpm/gbench.cmake)
rapids_cpm_gbench()

# Find or install NVBench Temporarily force downloading of fmt because current versions of nvbench
# do not support the latest version of fmt, which is automatically pulled into our conda
# environments by mamba.
set(CPM_DOWNLOAD_fmt TRUE)
# Find or install nvbench
include(cmake/thirdparty/get_nvbench.cmake)

add_subdirectory(benchmarks)
endif()

Expand Down
5 changes: 5 additions & 0 deletions cpp/cmake/thirdparty/get_nvbench.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ function(find_and_configure_nvbench)
include(${rapids-cmake-dir}/cpm/nvbench.cmake)
include(${rapids-cmake-dir}/cpm/package_override.cmake)

# Find or install NVBench Temporarily force downloading of fmt because current versions of nvbench
# do not support the latest version of fmt, which is automatically pulled into our conda
# environments by mamba.
set(CPM_DOWNLOAD_fmt TRUE)

set(cudf_patch_dir "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/patches")
rapids_cpm_package_override("${cudf_patch_dir}/nvbench_override.json")

Expand Down
2 changes: 1 addition & 1 deletion cpp/cmake/thirdparty/patches/nvbench_override.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{
"packages" : {
"Thrust" : {
"nvbench" : {
"patches" : [
{
"file" : "${current_json_dir}/nvbench_global_setup.diff",
Expand Down

0 comments on commit b0335e3

Please sign in to comment.