diff --git a/clang-tools-extra/pseudo/test/CMakeLists.txt b/clang-tools-extra/pseudo/test/CMakeLists.txt
index e541359ee5cf633c4255f7bf020522cc52173b10..250186cb78c16507a953dbdc08460f2ba73488a2 100644
--- a/clang-tools-extra/pseudo/test/CMakeLists.txt
+++ b/clang-tools-extra/pseudo/test/CMakeLists.txt
@@ -3,7 +3,7 @@ set(CLANG_PSEUDO_TEST_DEPS
   ClangPseudoTests
   )
 
-foreach(dep FileCheck not)
+foreach(dep FileCheck not count)
   if(TARGET ${dep})
     list(APPEND CLANG_PSEUDO_TEST_DEPS ${dep})
   endif()