X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=CMakeLists.txt;h=237701818ff9e944701b3ac46c1c904046adb442;hb=96c049d56dd54cd669f787435abddaf6d8e6717b;hp=2e758f3fb70b1c6ae3eee03f56b0c068b6fba9ba;hpb=789dde4b5074e786ebdcbec5deca370664d10d75;p=oota-llvm.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e758f3fb70..237701818ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -502,6 +502,15 @@ endif() add_subdirectory(projects) +option(WITH_POLLY "Build LLVM with Polly" ON) +option(LINK_POLLY_INTO_TOOLS "Static link Polly into tools" OFF) + +if(WITH_POLLY) + if(NOT EXISTS ${LLVM_MAIN_SRC_DIR}/tools/polly/CMakeLists.txt) + set(WITH_POLLY OFF) + endif() +endif(WITH_POLLY) + if( LLVM_INCLUDE_TOOLS ) add_subdirectory(tools) endif() @@ -564,10 +573,3 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY) PATTERN ".svn" EXCLUDE ) endif() - -option(WITH_POLLY "Build LLVM with Polly" ON) -if(WITH_POLLY) - if(NOT EXISTS ${LLVM_MAIN_SRC_DIR}/tools/polly/CMakeLists.txt) - set(WITH_POLLY OFF) - endif() -endif(WITH_POLLY)