]> granicus.if.org Git - clang/commitdiff
Define CMake option CLANG_INCLUDE_TESTS *before* traversing into tests/ subdirectory...
authorAlexey Samsonov <samsonov@google.com>
Tue, 26 Feb 2013 09:43:27 +0000 (09:43 +0000)
committerAlexey Samsonov <samsonov@google.com>
Tue, 26 Feb 2013 09:43:27 +0000 (09:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176080 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 14fe46fe6e1ee76b1f9316efabe5b7295eb09767..fc1fed4988c67072c891e390b7705123079f757e 100644 (file)
@@ -276,13 +276,13 @@ add_subdirectory(runtime)
 option(CLANG_BUILD_EXAMPLES "Build CLANG example programs by default." OFF)
 add_subdirectory(examples)
 
-# TODO: docs.
-add_subdirectory(test)
-
 option(CLANG_INCLUDE_TESTS
        "Generate build targets for the Clang unit tests."
        ${LLVM_INCLUDE_TESTS})
 
+# TODO: docs.
+add_subdirectory(test)
+
 if( CLANG_INCLUDE_TESTS )
   add_subdirectory(unittests)
 endif()