[Lldb-commits] [lldb] e1f6b68 - [lldb/Cmake] Add a CMakeLists.txt to the utils directory...

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 16 22:31:41 PST 2020


Author: Jonas Devlieghere
Date: 2020-01-16T22:31:01-08:00
New Revision: e1f6b68d1fd117b92953d2e21567dd8dad759a8b

URL: https://github.com/llvm/llvm-project/commit/e1f6b68d1fd117b92953d2e21567dd8dad759a8b
DIFF: https://github.com/llvm/llvm-project/commit/e1f6b68d1fd117b92953d2e21567dd8dad759a8b.diff

LOG: [lldb/Cmake] Add a CMakeLists.txt to the utils directory...

... and include it from the main CMakeLists.txt instead of including the
utility subdirectories directly. This is consistent with the other
subdirectories and limits the scope of future changes.

Added: 
    lldb/utils/CMakeLists.txt

Modified: 
    lldb/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt
index 573b8556989e..00b06119d64a 100644
--- a/lldb/CMakeLists.txt
+++ b/lldb/CMakeLists.txt
@@ -92,8 +92,7 @@ option(LLDB_INCLUDE_TESTS "Generate build targets for the LLDB unit tests." ${LL
 if(LLDB_INCLUDE_TESTS)
   add_subdirectory(test)
   add_subdirectory(unittests)
-  add_subdirectory(utils/lit-cpuid)
-  add_subdirectory(utils/lldb-dotest)
+  add_subdirectory(utils)
 endif()
 
 if (LLDB_ENABLE_PYTHON)

diff  --git a/lldb/utils/CMakeLists.txt b/lldb/utils/CMakeLists.txt
new file mode 100644
index 000000000000..d08f66f7b6c5
--- /dev/null
+++ b/lldb/utils/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_subdirectory(lit-cpuid)
+add_subdirectory(lldb-dotest)


        


More information about the lldb-commits mailing list