unittests: Don't install TestPlugin.so
authorTom Stellard <tstellar@redhat.com>
Thu, 16 Aug 2018 16:53:06 +0000 (16:53 +0000)
committerTom Stellard <tstellar@redhat.com>
Thu, 16 Aug 2018 16:53:06 +0000 (16:53 +0000)
Summary:
add_llvm_loadable_module adds an install target by default, but this
module is only used for a unit test, so we don't need to install it.

Reviewers: philip.pfaffe, thakis

Subscribers: mgorny, llvm-commits

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

llvm-svn: 339897

llvm/unittests/Passes/CMakeLists.txt

index d90df20..415329e 100644 (file)
@@ -14,7 +14,7 @@ add_llvm_unittest(PluginsTests
 export_executable_symbols(PluginsTests)
 
 set(LLVM_LINK_COMPONENTS)
-add_llvm_loadable_module(TestPlugin
+add_llvm_library(TestPlugin MODULE BUILDTREE_ONLY
   TestPlugin.cpp
   )