[llvm-branch-commits] [polly] r231275 - Allow to build shared libraries if BUILD_SHARED_LIBS is enabled

Tobias Grosser tobias at grosser.es
Wed Mar 4 10:53:05 PST 2015


Author: grosser
Date: Wed Mar  4 12:53:04 2015
New Revision: 231275

URL: http://llvm.org/viewvc/llvm-project?rev=231275&view=rev
Log:
Allow to build shared libraries if BUILD_SHARED_LIBS is enabled

Contributed-by: Richard Membarth <richard.membarth at uni-saarland.de>

Modified:
    polly/branches/release_36/lib/CMakeLists.txt

Modified: polly/branches/release_36/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/branches/release_36/lib/CMakeLists.txt?rev=231275&r1=231274&r2=231275&view=diff
==============================================================================
--- polly/branches/release_36/lib/CMakeLists.txt (original)
+++ polly/branches/release_36/lib/CMakeLists.txt Wed Mar  4 12:53:04 2015
@@ -49,6 +49,22 @@ add_polly_library(Polly
   ${POLLY_PLUTO_FILES}
   )
 
+if (BUILD_SHARED_LIBS)
+  target_link_libraries(Polly
+    LLVMSupport
+    LLVMCore
+    LLVMScalarOpts
+    LLVMInstCombine
+    LLVMTransformUtils
+    LLVMAnalysis
+    LLVMipo
+    LLVMProfileData
+  )
+  link_directories(
+      ${LLVM_LIBRARY_DIR}
+  )
+endif()
+
 # Build a monolithic Polly.a and a thin module LLVMPolly.moduleext that links to
 # that static library.
 add_polly_loadable_module(LLVMPolly





More information about the llvm-branch-commits mailing list