diff --git a/velox/functions/remote/CMakeLists.txt b/velox/functions/remote/CMakeLists.txt index 67e2604722d6..fa6cee96a731 100644 --- a/velox/functions/remote/CMakeLists.txt +++ b/velox/functions/remote/CMakeLists.txt @@ -16,4 +16,6 @@ add_subdirectory(if) add_subdirectory(client) add_subdirectory(server) add_subdirectory(utils) -add_subdirectory(benchmarks) +if(${VELOX_ENABLE_BENCHMARKS}) + add_subdirectory(benchmarks) +endif()