[lldb] Restore default setting of LLDB_INCLUDE_TESTS in standalone builds

In 52f39853ab the option LLDB_INCLUDE_TESTS was
moved above the inclusion of LLDBStandalone. This isn't a problem per-se, but
it changes the default value of LLDB_INCLUDE_TESTS in standalone builds.
LLDBStandalone explicitly sets LLVM_INCLUDE_TESTS to true, indicating that
for standalone builds this is considered the default behavior.
This patch restores said default behavior.

Differential Revision: https://reviews.llvm.org/D138237
This commit is contained in:
Alex Langford 2022-11-17 13:46:40 -08:00
parent 0f3e72e86c
commit 58d38b3ff8
2 changed files with 1 additions and 1 deletions

View File

@ -18,6 +18,7 @@ set(CMAKE_MODULE_PATH
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
project(lldb)
set(LLDB_BUILT_STANDALONE TRUE)
set(LLVM_INCLUDE_TESTS ON CACHE INTERNAL "")
endif()
# Must go below project(..)

View File

@ -89,7 +89,6 @@ include(CheckAtomic)
include(LLVMDistributionSupport)
set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
set(LLVM_INCLUDE_TESTS ON CACHE INTERNAL "")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories(