diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2013-05-29 21:09:18 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2013-05-29 21:09:18 +0000 |
commit | ff62d64c63cbae47ed768638aa9c621eccff030c (patch) | |
tree | 9484dc9528d18d66c81276bbcce3233b7c074e82 /unittests | |
parent | 1acb394679b6e644044a0f6c358229759009b1a6 (diff) | |
download | clang-ff62d64c63cbae47ed768638aa9c621eccff030c.tar.gz clang-ff62d64c63cbae47ed768638aa9c621eccff030c.tar.bz2 clang-ff62d64c63cbae47ed768638aa9c621eccff030c.tar.xz |
Turn CLANG_ENABLE_{ARCMT,REWRITER,STATIC_ANALYZER} into proper options so that
users can disable those. Just like in autoconf generated makefiles.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/CMakeLists.txt | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index 334ea41422..fed775ef02 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -9,10 +9,14 @@ function(add_clang_unittest test_dirname) add_unittest(ClangUnitTests ${test_dirname} ${ARGN}) endfunction() -add_subdirectory(ASTMatchers) -add_subdirectory(AST) add_subdirectory(Basic) add_subdirectory(Lex) -add_subdirectory(Frontend) -add_subdirectory(Tooling) -add_subdirectory(Format) +if(CLANG_ENABLE_STATIC_ANALYZER) + add_subdirectory(Frontend) +endif() +if(CLANG_ENABLE_REWRITER) + add_subdirectory(ASTMatchers) + add_subdirectory(AST) + add_subdirectory(Tooling) + add_subdirectory(Format) +endif() |