X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=CMakeLists.txt;h=49d1296950a5b3120b77985966ec5d9a788f3032;hb=e5b11b349bf91812a5dc65b320e067b2ec30d215;hp=2e758f3fb70b1c6ae3eee03f56b0c068b6fba9ba;hpb=667376028fc44bbcd861e6a70ff0e04b29f177d1;p=oota-llvm.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e758f3fb70..49d1296950a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -502,6 +502,13 @@ endif() add_subdirectory(projects) +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) + if( LLVM_INCLUDE_TOOLS ) add_subdirectory(tools) endif() @@ -564,10 +571,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)