[PATCH] D137035: [llvm] [cmake] Set EXCLUDE_FROM_ALL on gtest and TestingSupport
Michał Górny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 24 08:52:43 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa6eb76f57c4a: [llvm] [cmake] Set EXCLUDE_FROM_ALL on gtest and TestingSupport (authored by mgorny).
Changed prior to commit:
https://reviews.llvm.org/D137035?vs=473486&id=477814#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137035/new/
https://reviews.llvm.org/D137035
Files:
llvm/lib/Testing/Support/CMakeLists.txt
third-party/unittest/CMakeLists.txt
Index: third-party/unittest/CMakeLists.txt
===================================================================
--- third-party/unittest/CMakeLists.txt
+++ third-party/unittest/CMakeLists.txt
@@ -38,6 +38,10 @@
list(APPEND LIBS pthread)
endif()
+# Do not build unittest libraries automatically, they will be pulled in
+# by unittests if these are built.
+set(EXCLUDE_FROM_ALL ON)
+
add_llvm_library(llvm_gtest
googletest/src/gtest-all.cc
googlemock/src/gmock-all.cc
Index: llvm/lib/Testing/Support/CMakeLists.txt
===================================================================
--- llvm/lib/Testing/Support/CMakeLists.txt
+++ llvm/lib/Testing/Support/CMakeLists.txt
@@ -1,3 +1,7 @@
+# Do not build unittest libraries automatically, they will be pulled in
+# by unittests if these are built.
+set(EXCLUDE_FROM_ALL ON)
+
add_llvm_library(LLVMTestingSupport
Annotations.cpp
Error.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137035.477814.patch
Type: text/x-patch
Size: 903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221124/e59bd182/attachment.bin>
More information about the llvm-commits
mailing list