]> granicus.if.org Git - clang/commitdiff
Don't include Clang's unit tests if LLVM's unit tests aren't being built
authorDouglas Gregor <dgregor@apple.com>
Fri, 25 Feb 2011 00:12:04 +0000 (00:12 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 25 Feb 2011 00:12:04 +0000 (00:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126455 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 956a109c7a221dfb0b1472f4ab8598358c5d73c3..afbe13b485284c3110dc5a1b39753bdf206a68bf 100644 (file)
@@ -246,12 +246,11 @@ add_subdirectory(runtime)
 
 # TODO: docs.
 if( LLVM_INCLUDE_TESTS )
-add_subdirectory(test)
-endif()
+  add_subdirectory(test)
 
-# FIXME: unittests require gtest.
-if( NOT CLANG_BUILT_STANDALONE )
-  add_subdirectory(unittests)
+  if( NOT CLANG_BUILT_STANDALONE )
+    add_subdirectory(unittests)
+  endif()
 endif()
 
 # Workaround for MSVS10 to avoid the Dialog Hell