diff --git a/projects/hipcub/cmake/Dependencies.cmake b/projects/hipcub/cmake/Dependencies.cmake index 36a5310c422..2cdbe0e4c95 100644 --- a/projects/hipcub/cmake/Dependencies.cmake +++ b/projects/hipcub/cmake/Dependencies.cmake @@ -336,6 +336,7 @@ if(USER_BUILD_TEST) endif(USER_BUILD_TEST) if(USER_BUILD_BENCHMARK) + set(BENCHMARK_VERSION 1.8.0) if(NOT EXTERNAL_DEPS_FORCE_DOWNLOAD) find_package(benchmark CONFIG QUIET) endif() @@ -346,7 +347,7 @@ if(USER_BUILD_BENCHMARK) FetchContent_Declare( googlebench GIT_REPOSITORY https://github.com/google/benchmark.git - GIT_TAG v1.8.0 + GIT_TAG v${BENCHMARK_VERSION} ) FetchContent_MakeAvailable(googlebench) if(NOT TARGET benchmark::benchmark) diff --git a/projects/rocprim/cmake/Dependencies.cmake b/projects/rocprim/cmake/Dependencies.cmake index 885e1f6953c..3ee02289300 100644 --- a/projects/rocprim/cmake/Dependencies.cmake +++ b/projects/rocprim/cmake/Dependencies.cmake @@ -120,8 +120,9 @@ if(BUILD_TEST) endif(BUILD_TEST) if(BUILD_BENCHMARK) + set(BENCHMARK_VERSION 1.8.0) if(NOT DEPENDENCIES_FORCE_DOWNLOAD) - find_package(benchmark CONFIG QUIET) + find_package(benchmark ${BENCHMARK_VERSION} CONFIG QUIET) endif() if(NOT TARGET benchmark::benchmark) message(STATUS "Google Benchmark not found. Fetching...") @@ -130,7 +131,7 @@ if(BUILD_BENCHMARK) FetchContent_Declare( googlebench GIT_REPOSITORY https://github.com/google/benchmark.git - GIT_TAG v1.8.0 + GIT_TAG v${BENCHMARK_VERSION} ) set(HAVE_STD_REGEX ON) set(RUN_HAVE_STD_REGEX 1)