[PATCH] D145946: [third-party] Respect LLVM_INSTALL_GTEST for llvm_gtest_main

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 13 09:12:16 PDT 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGdde05b4b9132: [third-party] Respect LLVM_INSTALL_GTEST for llvm_gtest_main (authored by mgorny).
Herald added a project: LLVM.

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D145946

Files:
  third-party/unittest/UnitTestMain/CMakeLists.txt


Index: third-party/unittest/UnitTestMain/CMakeLists.txt
===================================================================
--- third-party/unittest/UnitTestMain/CMakeLists.txt
+++ third-party/unittest/UnitTestMain/CMakeLists.txt
@@ -1,3 +1,8 @@
+set(BUILDTREE_ONLY BUILDTREE_ONLY)
+if (LLVM_INSTALL_GTEST)
+  set(BUILDTREE_ONLY "")
+endif ()
+
 add_llvm_library(llvm_gtest_main
   TestMain.cpp
 
@@ -7,6 +12,5 @@
   LINK_COMPONENTS
   Support # Depends on llvm::cl
 
-  # This library is not meant to be in the install tree, only the build tree.
-  BUILDTREE_ONLY
+  ${BUILDTREE_ONLY}
   )


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145946.504699.patch
Type: text/x-patch
Size: 591 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230313/0b3db2cc/attachment.bin>


More information about the llvm-commits mailing list