From: Yaron Keren Date: Wed, 1 Jun 2016 13:47:26 +0000 (+0000) Subject: Fix the CLANG_ENABLE_STATIC_ANALYZER=OFF build. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13ad43d114bc8e985bda79d179f8152db84b006c;p=clang Fix the CLANG_ENABLE_STATIC_ANALYZER=OFF build. tools/clang/tools/CMakeLists.txt does not create the clang-check target when CLANG_ENABLE_STATIC_ANALYZER=OFF. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271392 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c6cad7997d..ca8c984f7d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -26,10 +26,16 @@ endif () list(APPEND CLANG_TEST_DEPS clang clang-headers - clang-check clang-format + clang-format c-index-test diagtool clang-tblgen ) + +if(CLANG_ENABLE_STATIC_ANALYZER) + list(APPEND CLANG_TEST_DEPS + clang-check + ) +endif() if (CLANG_ENABLE_ARCMT) list(APPEND CLANG_TEST_DEPS