aboutsummaryrefslogtreecommitdiff
path: root/lldb/cmake
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2022-11-09 08:51:34 -0800
committerTom Stellard <tstellar@redhat.com>2022-11-09 11:10:26 -0800
commit59052468c3e38cab15582cefbb5133fd4c2ffce5 (patch)
treea8998d8386daf3d6a1302f25039128c2c422a274 /lldb/cmake
parent4d5a9c1d171b1b86deb2030e37b31ab2ec9d1dd0 (diff)
downloadllvm-59052468c3e38cab15582cefbb5133fd4c2ffce5.zip
llvm-59052468c3e38cab15582cefbb5133fd4c2ffce5.tar.gz
llvm-59052468c3e38cab15582cefbb5133fd4c2ffce5.tar.bz2
Move googletest to the third-party directory
This will help improve the project's layering, so that sub-projects that don't actually need any llvm code can still use googletest without having to reference code in the llvm directory. This will also make it easier to consolidate and simplify the standalone build configurations. Reviewed By: stellaraccident, lattner, probinson, phosek Differential Revision: https://reviews.llvm.org/D131919
Diffstat (limited to 'lldb/cmake')
-rw-r--r--lldb/cmake/modules/LLDBStandalone.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/cmake/modules/LLDBStandalone.cmake b/lldb/cmake/modules/LLDBStandalone.cmake
index 3ce63f1..ce16f55 100644
--- a/lldb/cmake/modules/LLDBStandalone.cmake
+++ b/lldb/cmake/modules/LLDBStandalone.cmake
@@ -100,8 +100,8 @@ include_directories(
if(LLDB_INCLUDE_TESTS)
# Build the gtest library needed for unittests, if we have LLVM sources
# handy.
- if (EXISTS ${LLVM_MAIN_SRC_DIR}/utils/unittest AND NOT TARGET llvm_gtest)
- add_subdirectory(${LLVM_MAIN_SRC_DIR}/utils/unittest utils/unittest)
+ if (EXISTS ${LLVM_THIRD_PARTY_DIR}/unittest AND NOT TARGET llvm_gtest)
+ add_subdirectory(${LLVM_THIRD_PARTY_DIR}}/utils/unittest third-party/unittest)
endif()
# LLVMTestingSupport library is needed for Process/gdb-remote.
if (EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Testing/Support