Skip to content

Commit 65f9ae1

Browse files
committed
[cmake] Treat polly as "in tree" if LLVM_EXTERNAL_POLLY_SOURCE_DIR is provided
Differential Revision: https://reviews.llvm.org/D25354 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283608 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent b6ae30c commit 65f9ae1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ option(LLVM_POLLY_BUILD "Build LLVM with Polly" ON)
395395

396396
if (EXISTS ${LLVM_MAIN_SRC_DIR}/tools/polly/CMakeLists.txt)
397397
set(POLLY_IN_TREE TRUE)
398+
elseif(LLVM_EXTERNAL_POLLY_SOURCE_DIR)
399+
set(POLLY_IN_TREE TRUE)
398400
else()
399401
set(POLLY_IN_TREE FALSE)
400402
endif()

0 commit comments

Comments
 (0)