[polly] r259659 - Properly build shared libraries if LLVM_LINK_LLVM_DYLIB is enabled.
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 3 08:29:05 PST 2016
Author: grosser
Date: Wed Feb 3 10:29:04 2016
New Revision: 259659
URL: http://llvm.org/viewvc/llvm-project?rev=259659&view=rev
Log:
Properly build shared libraries if LLVM_LINK_LLVM_DYLIB is enabled.
Contributed-by: Jack Howarth <howarthjw at gmail.com>
Modified:
polly/trunk/lib/CMakeLists.txt
Modified: polly/trunk/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CMakeLists.txt?rev=259659&r1=259658&r2=259659&view=diff
==============================================================================
--- polly/trunk/lib/CMakeLists.txt (original)
+++ polly/trunk/lib/CMakeLists.txt Wed Feb 3 10:29:04 2016
@@ -77,6 +77,13 @@ if (BUILD_SHARED_LIBS)
link_directories(
${LLVM_LIBRARY_DIR}
)
+elseif (LLVM_LINK_LLVM_DYLIB)
+ target_link_libraries(Polly
+ LLVM
+ )
+ link_directories(
+ ${LLVM_LIBRARY_DIR}
+ )
endif()
# Build a monolithic Polly.a and a thin module LLVMPolly.moduleext that links to
More information about the llvm-commits
mailing list