From d0a767608773cfa3d8644c27796b63ff40962806 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 14 Jan 2019 18:25:35 +0000 Subject: [PATCH] cmake: Don't install plugins used for examples or tests 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 | 2 +- llvm/tools/bugpoint-passes/CMakeLists.txt | 2 +- llvm/unittests/Passes/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/Hello/CMakeLists.txt b/llvm/lib/Transforms/Hello/CMakeLists.txt index d9cd33a..c4f1024 100644 --- a/llvm/lib/Transforms/Hello/CMakeLists.txt +++ b/llvm/lib/Transforms/Hello/CMakeLists.txt @@ -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 diff --git a/llvm/tools/bugpoint-passes/CMakeLists.txt b/llvm/tools/bugpoint-passes/CMakeLists.txt index 56a7eac..eea3e23 100644 --- a/llvm/tools/bugpoint-passes/CMakeLists.txt +++ b/llvm/tools/bugpoint-passes/CMakeLists.txt @@ -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 diff --git a/llvm/unittests/Passes/CMakeLists.txt b/llvm/unittests/Passes/CMakeLists.txt index 7e898763..3e83b52 100644 --- a/llvm/unittests/Passes/CMakeLists.txt +++ b/llvm/unittests/Passes/CMakeLists.txt @@ -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 ) -- 2.7.4