summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index 6223d1cadc..78a0b42bab 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -66,7 +66,12 @@ add_llvm_external_project(clang)
if( NOT LLVM_INCLUDE_TOOLS STREQUAL "bootstrap-only" )
add_llvm_external_project(lld)
add_llvm_external_project(lldb)
- add_llvm_external_project(polly)
+
+ if(WITH_POLLY)
+ add_llvm_external_project(polly)
+ else(WITH_POLLY)
+ list(APPEND LLVM_IMPLICIT_PROJECT_IGNORE "${CMAKE_CURRENT_SOURCE_DIR}/polly")
+ endif(WITH_POLLY)
# Automatically add remaining sub-directories containing a 'CMakeLists.txt'
# file as external projects.