diff options
-rw-r--r-- | polly/lib/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/polly/lib/CMakeLists.txt b/polly/lib/CMakeLists.txt index 371b97aa20f..b83e75b290b 100644 --- a/polly/lib/CMakeLists.txt +++ b/polly/lib/CMakeLists.txt @@ -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 |