diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 47e9eb99733..3df7e72c948 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -53,6 +53,7 @@ option(CUDF_BUILD_TESTUTIL "Whether to build the test utilities contained in lib mark_as_advanced(CUDF_BUILD_TESTUTIL) option(CUDF_USE_PROPRIETARY_NVCOMP "Download and use NVCOMP with proprietary extensions" ON) option(CUDF_USE_ARROW_STATIC "Build and statically link Arrow libraries" OFF) +option(CUDF_USE_BENCHMARK_STATIC "Build and statically link GoogleBenchmark" OFF) option(CUDF_ENABLE_ARROW_ORC "Build the Arrow ORC adapter" OFF) option(CUDF_ENABLE_ARROW_PYTHON "Find (or build) Arrow with Python support" OFF) option(CUDF_ENABLE_ARROW_PARQUET "Find (or build) Arrow with Parquet support" OFF) @@ -99,6 +100,7 @@ message(VERBOSE "CUDF: Configure CMake to build (google & nvbench) benchmarks: $ message(VERBOSE "CUDF: Build cuDF shared libraries: ${BUILD_SHARED_LIBS}") message(VERBOSE "CUDF: Use a file cache for JIT compiled kernels: ${JITIFY_USE_CACHE}") message(VERBOSE "CUDF: Build and statically link Arrow libraries: ${CUDF_USE_ARROW_STATIC}") +message(VERBOSE "CUDF: Build and statically link GoogleBenchmark: ${CUDF_USE_BENCHMARK_STATIC}") message(VERBOSE "CUDF: Build and enable S3 filesystem support for Arrow: ${CUDF_ENABLE_ARROW_S3}") message(VERBOSE "CUDF: Build with per-thread default stream: ${CUDF_USE_PER_THREAD_DEFAULT_STREAM}") message( @@ -952,7 +954,7 @@ endif() if(CUDF_BUILD_BENCHMARKS) # Find or install GoogleBench include(${rapids-cmake-dir}/cpm/gbench.cmake) - rapids_cpm_gbench() + rapids_cpm_gbench(BUILD_STATIC ${CUDF_USE_BENCHMARK_STATIC}) # Find or install nvbench include(cmake/thirdparty/get_nvbench.cmake)