X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=CMakeLists.txt;h=fc46413640c513dbbd0a55d2752b7181b942ea7b;hb=0136ee950c46aaf3922c42c48053f127490ced80;hp=6659e535444f5591b15f856d97557675c3183a0f;hpb=13ed0ecd8bf1af385d0e659d477c0f50406348ac;p=oota-llvm.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 6659e535444..fc46413640c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -683,6 +683,13 @@ if( LLVM_INCLUDE_EXAMPLES ) endif() if( LLVM_INCLUDE_TESTS ) + if(EXISTS ${LLVM_MAIN_SRC_DIR}/projects/test-suite AND TARGET clang) + include(LLVMExternalProjectUtils) + llvm_ExternalProject_Add(test-suite ${LLVM_MAIN_SRC_DIR}/projects/test-suite + USE_TOOLCHAIN + EXCLUDE_FROM_ALL + NO_INSTALL) + endif() add_subdirectory(test) add_subdirectory(unittests) if (MSVC)