diff --git a/cpp/velox/CMakeLists.txt b/cpp/velox/CMakeLists.txt index f301215af7d22..d95a77dbd1a49 100644 --- a/cpp/velox/CMakeLists.txt +++ b/cpp/velox/CMakeLists.txt @@ -124,9 +124,8 @@ macro(ADD_VELOX_DEPENDENCIES) if(BUILD_TESTS) add_velox_dependency(exec::test "${VELOX_COMPONENTS_PATH}/exec/tests/utils/libvelox_exec_test_lib.a") add_velox_dependency(temp::path "${VELOX_COMPONENTS_PATH}/exec/tests/utils/libvelox_temp_path.a") - add_velox_dependency(dwio::common::test::utils "${VELOX_COMPONENTS_PATH}/dwio/common/tests/utils/libvelox_dwio_common_test_utils.a") endif() - if(BUILD_BENCHMARKS) + if(BUILD_TESTS OR BUILD_BENCHMARKS) add_velox_dependency(dwio::common::test::utils "${VELOX_COMPONENTS_PATH}/dwio/common/tests/utils/libvelox_dwio_common_test_utils.a") endif() add_velox_dependency(exec "${VELOX_COMPONENTS_PATH}/exec/libvelox_exec.a")