[llvm] ceb72d0 - Fix build with shared libraries. NFC.
Michael Liao via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 12 10:42:28 PST 2019
Author: Michael Liao
Date: 2019-11-12T13:40:35-05:00
New Revision: ceb72d07b004af9c428c4a3c73a98ea97d49a713
URL: https://github.com/llvm/llvm-project/commit/ceb72d07b004af9c428c4a3c73a98ea97d49a713
DIFF: https://github.com/llvm/llvm-project/commit/ceb72d07b004af9c428c4a3c73a98ea97d49a713.diff
LOG: Fix build with shared libraries. NFC.
- Dependent components need linking directly.
Added:
Modified:
llvm/examples/IRTransforms/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/examples/IRTransforms/CMakeLists.txt b/llvm/examples/IRTransforms/CMakeLists.txt
index bf135b92b204..1c3185eed5ff 100644
--- a/llvm/examples/IRTransforms/CMakeLists.txt
+++ b/llvm/examples/IRTransforms/CMakeLists.txt
@@ -1,3 +1,9 @@
+set(LLVM_LINK_COMPONENTS
+ Analysis
+ Core
+ Support
+ )
+
add_llvm_library(ExampleIRTransforms
InitializePasses.cpp
SimplifyCFG.cpp
More information about the llvm-commits
mailing list