This revision was automatically updated to reflect the committed changes. Closed by commit rL329594: [cmake] Include LLVMTestingSupport when doing stand-alone build (authored by mgorny, committed by ). Herald added subscribers: llvm-commits, klimek.
Changed prior to commit: https://reviews.llvm.org/D45409?vs=141507&id=141678#toc Repository: rL LLVM https://reviews.llvm.org/D45409 Files: clang-tools-extra/trunk/unittests/CMakeLists.txt Index: clang-tools-extra/trunk/unittests/CMakeLists.txt =================================================================== --- clang-tools-extra/trunk/unittests/CMakeLists.txt +++ clang-tools-extra/trunk/unittests/CMakeLists.txt @@ -5,6 +5,15 @@ add_unittest(ExtraToolsUnitTests ${test_dirname} ${ARGN}) endfunction() +if(CLANG_BUILT_STANDALONE) + # LLVMTestingSupport library is needed for clangd tests. + if (EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Testing/Support + AND NOT TARGET LLVMTestingSupport) + add_subdirectory(${LLVM_MAIN_SRC_DIR}/lib/Testing/Support + lib/Testing/Support) + endif() +endif() + add_subdirectory(change-namespace) add_subdirectory(clang-apply-replacements) add_subdirectory(clang-move)
Index: clang-tools-extra/trunk/unittests/CMakeLists.txt =================================================================== --- clang-tools-extra/trunk/unittests/CMakeLists.txt +++ clang-tools-extra/trunk/unittests/CMakeLists.txt @@ -5,6 +5,15 @@ add_unittest(ExtraToolsUnitTests ${test_dirname} ${ARGN}) endfunction() +if(CLANG_BUILT_STANDALONE) + # LLVMTestingSupport library is needed for clangd tests. + if (EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Testing/Support + AND NOT TARGET LLVMTestingSupport) + add_subdirectory(${LLVM_MAIN_SRC_DIR}/lib/Testing/Support + lib/Testing/Support) + endif() +endif() + add_subdirectory(change-namespace) add_subdirectory(clang-apply-replacements) add_subdirectory(clang-move)
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits