Index: utils/unittest/CMakeLists.txt =================================================================== --- utils/unittest/CMakeLists.txt +++ utils/unittest/CMakeLists.txt @@ -37,6 +37,9 @@ list(APPEND LIBS pthread) endif() +# Delay building until the tests pull it in, and avoid installing it +set(EXCLUDE_FROM_ALL ON) + add_llvm_library(gtest googletest/src/gtest-all.cc