Fix build with shared libraries. NFC.
authorMichael Liao <michael.hliao@gmail.com>
Tue, 12 Nov 2019 18:37:27 +0000 (13:37 -0500)
committerMichael Liao <michael.hliao@gmail.com>
Tue, 12 Nov 2019 18:40:35 +0000 (13:40 -0500)
- Dependent components need linking directly.

llvm/examples/IRTransforms/CMakeLists.txt

index bf135b9..1c3185e 100644 (file)
@@ -1,3 +1,9 @@
+set(LLVM_LINK_COMPONENTS
+  Analysis
+  Core
+  Support
+  )
+
 add_llvm_library(ExampleIRTransforms
   InitializePasses.cpp
   SimplifyCFG.cpp