cmake: Don't install plugins used for examples or tests
authorTom Stellard <tstellar@redhat.com>
Mon, 14 Jan 2019 18:25:35 +0000 (18:25 +0000)
committerTom Stellard <tstellar@redhat.com>
Mon, 14 Jan 2019 18:25:35 +0000 (18:25 +0000)
Summary:
This patch drops install targets for LLVMHello.so,
TestPlugin.so, and BugpointPasses.so.

Reviewers: chandlerc, beanz, thakis, philip.pfaffe

Reviewed By: chandlerc

Subscribers: SquallATF, mgorny, llvm-commits

Differential Revision: https://reviews.llvm.org/D55965

llvm-svn: 351087

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

index d9cd33a..c4f1024 100644 (file)
@@ -10,7 +10,7 @@ if(WIN32 OR CYGWIN)
   set(LLVM_LINK_COMPONENTS Core Support)
 endif()
 
-add_llvm_library( LLVMHello MODULE
+add_llvm_library( LLVMHello MODULE BUILDTREE_ONLY
   Hello.cpp
 
   DEPENDS
index 56a7eac..eea3e23 100644 (file)
@@ -14,7 +14,7 @@ if(WIN32 OR CYGWIN)
   set(LLVM_LINK_COMPONENTS Core)
 endif()
 
-add_llvm_library( BugpointPasses MODULE
+add_llvm_library( BugpointPasses MODULE BUILDTREE_ONLY
   TestPasses.cpp
 
   DEPENDS
index 7e89876..3e83b52 100644 (file)
@@ -15,7 +15,7 @@ export_executable_symbols(PluginsTests)
 target_link_libraries(PluginsTests PRIVATE LLVMTestingSupport)
 
 set(LLVM_LINK_COMPONENTS)
-add_llvm_library(TestPlugin MODULE
+add_llvm_library(TestPlugin MODULE BUILDTREE_ONLY
   TestPlugin.cpp
   )