Mercurial > hg > CbC > CbC_llvm
diff clang/unittests/CMakeLists.txt @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 |
parents | c4bab56944e8 |
children |
line wrap: on
line diff
--- a/clang/unittests/CMakeLists.txt Wed Nov 09 17:47:54 2022 +0900 +++ b/clang/unittests/CMakeLists.txt Fri Aug 18 09:04:13 2023 +0900 @@ -2,7 +2,12 @@ set_target_properties(ClangUnitTests PROPERTIES FOLDER "Clang tests") if(CLANG_BUILT_STANDALONE) - # LLVMTestingSupport library is needed for some of the unittests. + # LLVMTesting* libraries are needed for some of the unittests. + if (EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Testing/Annotations + AND NOT TARGET LLVMTestingAnnotations) + add_subdirectory(${LLVM_MAIN_SRC_DIR}/lib/Testing/Annotations + lib/Testing/Annotations) + endif() if (EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Testing/Support AND NOT TARGET LLVMTestingSupport) add_subdirectory(${LLVM_MAIN_SRC_DIR}/lib/Testing/Support