Index: CMakeLists.txt =================================================================== --- CMakeLists.txt +++ CMakeLists.txt @@ -395,6 +395,8 @@ if (EXISTS ${LLVM_MAIN_SRC_DIR}/tools/polly/CMakeLists.txt) set(POLLY_IN_TREE TRUE) +elseif(LLVM_EXTERNAL_POLLY_SOURCE_DIR) + set(POLLY_IN_TREE TRUE) else() set(POLLY_IN_TREE FALSE) endif()