[Lldb-commits] [lldb] r315120 - [CMake] Add LLDB_INCLUDE_TESTS variable

Chris Bieneman via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 6 15:21:36 PDT 2017


Author: cbieneman
Date: Fri Oct  6 15:21:36 2017
New Revision: 315120

URL: http://llvm.org/viewvc/llvm-project?rev=315120&view=rev
Log:
[CMake] Add LLDB_INCLUDE_TESTS variable

This behaves like the other *_INCLUDE_TESTS variables in CMake and is tied to LLVM_INCLUDE_TESTS so that if you're building in-tree and not building the LLVM tests, you also won't build the LLDB tests.

Modified:
    lldb/trunk/CMakeLists.txt

Modified: lldb/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/CMakeLists.txt?rev=315120&r1=315119&r2=315120&view=diff
==============================================================================
--- lldb/trunk/CMakeLists.txt (original)
+++ lldb/trunk/CMakeLists.txt Fri Oct  6 15:21:36 2017
@@ -57,10 +57,15 @@ if (NOT LLDB_DISABLE_PYTHON)
   add_subdirectory(scripts)
 endif ()
 add_subdirectory(source)
-add_subdirectory(test)
 add_subdirectory(tools)
-add_subdirectory(unittests)
-add_subdirectory(lit)
+
+option(LLDB_INCLUDE_TESTS "Generate build targets for the LLDB unit tests."
+  ${LLVM_INCLUDE_TESTS})
+if(LLDB_INCLUDE_TESTS)
+  add_subdirectory(test)
+  add_subdirectory(unittests)
+  add_subdirectory(lit)
+endif()
 
 if (NOT LLDB_DISABLE_PYTHON)
     # Add a Post-Build Event to copy over Python files and create the symlink




More information about the lldb-commits mailing list