diff --git a/CMakeLists.txt b/CMakeLists.txt index 2065e3e8ee8a..4077e2c943e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -318,7 +318,9 @@ endif() # Benchmarks and tests at some places are coupled which is not great. See # velox/vector/CMakeLists.txt. TODO: Decouple. set(VELOX_DISABLE_GOOGLETEST OFF) -if(NOT VELOX_BUILD_TESTING AND NOT VELOX_ENABLE_BENCHMARKS_BASIC) +if(NOT VELOX_BUILD_TEST_UTILS + AND NOT VELOX_BUILD_TESTING + AND NOT VELOX_ENABLE_BENCHMARKS_BASIC) set(VELOX_DISABLE_GOOGLETEST ON) add_definitions(-DVELOX_DISABLE_GOOGLETEST) endif()