[autotools->cmake] Move add_subdirectory(test) inside CLANG_INCLUDE_TESTS to match the behavior of the LLVM where LLVM_INCLUDE_TESTS controls whether tests is included.

llvm-svn: 188760
This commit is contained in:
Michael Gottesman 2013-08-20 07:09:54 +00:00
parent 794315b65a
commit 23a3567bf1
1 changed files with 1 additions and 1 deletions

View File

@ -320,9 +320,9 @@ option(CLANG_INCLUDE_TESTS
${LLVM_INCLUDE_TESTS})
# TODO: docs.
add_subdirectory(test)
if( CLANG_INCLUDE_TESTS )
add_subdirectory(test)
add_subdirectory(unittests)
endif()