[PATCH] D45409: [cmake] Include LLVMTestingSupport when doing stand-alone build
Michał Górny via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 9 10:13:41 PDT 2018
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45409.141678.patch
Type: text/x-patch
Size: 733 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180409/7b2f17c3/attachment.bin>
More information about the cfe-commits
mailing list