X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=tools%2Fopt%2FCMakeLists.txt;fp=tools%2Fopt%2FCMakeLists.txt;h=1d3f08db7d2984ef1653631451a1a92a026503da;hb=beaa95d97f319dc9b93b89850ab2ed9790182166;hp=1f76ab55511b43a32364d018f385c59c69b00dcf;hpb=757ed6daf4c7720cddebdc3f502f7ecb110ded72;p=oota-llvm.git diff --git a/tools/opt/CMakeLists.txt b/tools/opt/CMakeLists.txt index 1f76ab55511..1d3f08db7d2 100644 --- a/tools/opt/CMakeLists.txt +++ b/tools/opt/CMakeLists.txt @@ -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)