static link polly into tools

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203886 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sebastian Pop
2014-03-14 04:04:14 +00:00
parent 757ed6daf4
commit beaa95d97f
8 changed files with 54 additions and 6 deletions

View File

@@ -32,3 +32,12 @@ add_llvm_tool(opt
opt.cpp
)
set_target_properties(opt PROPERTIES ENABLE_EXPORTS 1)
if(WITH_POLLY AND LINK_POLLY_INTO_TOOLS)
target_link_libraries(opt Polly)
if(POLLY_LINK_LIBS)
foreach(lib ${POLLY_LINK_LIBS})
target_link_libraries(opt ${lib})
endforeach(lib)
endif(POLLY_LINK_LIBS)
endif(WITH_POLLY AND LINK_POLLY_INTO_TOOLS)