summaryrefslogtreecommitdiff
path: root/lldb
diff options
context:
space:
mode:
authorStefan Granitz <stefan.graenitz@gmail.com>2019-01-11 18:11:04 +0000
committerStefan Granitz <stefan.graenitz@gmail.com>2019-01-11 18:11:04 +0000
commit395929af69328fde97fb55afd931f4c253ce9270 (patch)
treec9143f3989f44a1c4f0dcf58a7c9b61fc56e7fad /lldb
parent7f4892c68909e420becab208432463abb8b009ef (diff)
[CMake] Include tests by default also in standalone builds
In-tree builds include tests by default. Standalone builds should behave the same.
Diffstat (limited to 'lldb')
-rw-r--r--lldb/CMakeLists.txt3
-rw-r--r--lldb/cmake/modules/LLDBStandalone.cmake1
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt
index 55d7f5acd3b..cdf22c4b0fc 100644
--- a/lldb/CMakeLists.txt
+++ b/lldb/CMakeLists.txt
@@ -35,8 +35,7 @@ endif ()
add_subdirectory(source)
add_subdirectory(tools)
-option(LLDB_INCLUDE_TESTS "Generate build targets for the LLDB unit tests."
- ${LLVM_INCLUDE_TESTS})
+option(LLDB_INCLUDE_TESTS "Generate build targets for the LLDB unit tests." ${LLVM_INCLUDE_TESTS})
option(LLDB_TEST_USE_CUSTOM_C_COMPILER "Use the C compiler provided via LLDB_TEST_C_COMPILER for building test inferiors (instead of the just-built compiler). Defaults to OFF." OFF)
option(LLDB_TEST_USE_CUSTOM_CXX_COMPILER "Use the C++ compiler provided via LLDB_TEST_CXX_COMPILER for building test inferiors (instead of the just-built compiler). Defaults to OFF." OFF)
if(LLDB_INCLUDE_TESTS)
diff --git a/lldb/cmake/modules/LLDBStandalone.cmake b/lldb/cmake/modules/LLDBStandalone.cmake
index a196712557c..e63b2694e6a 100644
--- a/lldb/cmake/modules/LLDBStandalone.cmake
+++ b/lldb/cmake/modules/LLDBStandalone.cmake
@@ -106,6 +106,7 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
endif()
set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
+ set(LLVM_INCLUDE_TESTS ON CACHE INTERNAL "")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories("${CMAKE_BINARY_DIR}/include" "${LLVM_MAIN_INCLUDE_DIR}")