[PATCH] D36211: [cmake] Expose the dependencies of ExecutionEngine as PUBLIC

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 11 06:12:04 PDT 2017


mgorny updated this revision to Diff 110705.
mgorny added a comment.

Updated with @chapuni's patch. Please confirm it's good to go.


https://reviews.llvm.org/D36211

Files:
  lib/ExecutionEngine/CMakeLists.txt


Index: lib/ExecutionEngine/CMakeLists.txt
===================================================================
--- lib/ExecutionEngine/CMakeLists.txt
+++ lib/ExecutionEngine/CMakeLists.txt
@@ -14,6 +14,10 @@
   intrinsics_gen
   )
 
+if(BUILD_SHARED_LIBS)
+  target_link_libraries(LLVMExecutionEngine PUBLIC LLVMRuntimeDyld)
+endif()
+
 add_subdirectory(Interpreter)
 add_subdirectory(MCJIT)
 add_subdirectory(Orc)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36211.110705.patch
Type: text/x-patch
Size: 414 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170811/fabda5ff/attachment.bin>


More information about the llvm-commits mailing list