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 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: 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 )