[PATCH] D63097: [cmake] Don't add Support/Testing library if tests are not included

Alan Baker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 17 11:48:43 PDT 2019


alan-baker updated this revision to Diff 205137.
alan-baker added a comment.

Changed to use the top level LLVM build option.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D63097

Files:
  lib/CMakeLists.txt


Index: lib/CMakeLists.txt
===================================================================
--- lib/CMakeLists.txt
+++ lib/CMakeLists.txt
@@ -27,5 +27,7 @@
 add_subdirectory(TextAPI)
 add_subdirectory(ToolDrivers)
 add_subdirectory(XRay)
-add_subdirectory(Testing)
+if(${LLVM_INCLUDE_TESTS})
+  add_subdirectory(Testing)
+endif()
 add_subdirectory(WindowsManifest)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63097.205137.patch
Type: text/x-patch
Size: 367 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190617/13a11b5a/attachment.bin>


More information about the llvm-commits mailing list