[Lldb-commits] [PATCH] D124314: lldb: Disable unittests if llvm_gtest target does not exist

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Aug 13 05:25:02 PDT 2022


mgorny reopened this revision.
mgorny added a comment.
This revision is now accepted and ready to land.

Unfortunately, this change doesn't work correctly when building LLDB through `LLVM_ENABLE_PROJECTS` — unittests are always disabled now.



================
Comment at: lldb/CMakeLists.txt:128
+set(LLDB_INCLUDE_UNITTESTS ON)
+if (NOT TARGET llvm_gtest)
+  set(LLDB_INCLUDE_UNITTESTS OFF)
----------------
If LLDB is built through `LLVM_ENABLE_PROJECTS`, then LLDB's CMakeLists are included before the subdirectory containing `llvm_gtest`, effectively making this condition always false.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124314/new/

https://reviews.llvm.org/D124314



More information about the lldb-commits mailing list