[PATCH] D55965: cmake: Don't install plugins used for examples or tests

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 20 15:39:34 PST 2018


tstellar created this revision.
tstellar added reviewers: chandlerc, beanz, thakis, philip.pfaffe.
Herald added a subscriber: mgorny.

This patch drops install targets for LLVMHello.so,
TestPlugin.so, and BugpointPasses.so.


Repository:
  rL LLVM

https://reviews.llvm.org/D55965

Files:
  lib/Transforms/Hello/CMakeLists.txt
  tools/bugpoint-passes/CMakeLists.txt
  unittests/Passes/CMakeLists.txt


Index: unittests/Passes/CMakeLists.txt
===================================================================
--- unittests/Passes/CMakeLists.txt
+++ unittests/Passes/CMakeLists.txt
@@ -15,7 +15,7 @@
 target_link_libraries(PluginsTests PRIVATE LLVMTestingSupport)
 
 set(LLVM_LINK_COMPONENTS)
-add_llvm_library(TestPlugin MODULE
+add_llvm_library(TestPlugin MODULE BUILDTREE_ONLY
   TestPlugin.cpp
   )
 
Index: tools/bugpoint-passes/CMakeLists.txt
===================================================================
--- tools/bugpoint-passes/CMakeLists.txt
+++ tools/bugpoint-passes/CMakeLists.txt
@@ -14,7 +14,7 @@
   set(LLVM_LINK_COMPONENTS Core)
 endif()
 
-add_llvm_library( BugpointPasses MODULE
+add_llvm_library( BugpointPasses MODULE BUILDTREE_ONLY
   TestPasses.cpp
 
   DEPENDS
Index: lib/Transforms/Hello/CMakeLists.txt
===================================================================
--- lib/Transforms/Hello/CMakeLists.txt
+++ lib/Transforms/Hello/CMakeLists.txt
@@ -10,7 +10,7 @@
   set(LLVM_LINK_COMPONENTS Core Support)
 endif()
 
-add_llvm_library( LLVMHello MODULE
+add_llvm_library( LLVMHello MODULE BUILDTREE_ONLY
   Hello.cpp
 
   DEPENDS


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55965.179179.patch
Type: text/x-patch
Size: 1162 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181220/c77bcc88/attachment.bin>


More information about the llvm-commits mailing list