forked from OSchip/llvm-project
[cmake] Treat polly as "in tree" if LLVM_EXTERNAL_POLLY_SOURCE_DIR is provided
Differential Revision: https://reviews.llvm.org/D25354 llvm-svn: 283608
This commit is contained in:
parent
563d7e8a39
commit
78550e3991
|
@ -395,6 +395,8 @@ option(LLVM_POLLY_BUILD "Build LLVM with Polly" ON)
|
|||
|
||||
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()
|
||||
|
|
Loading…
Reference in New Issue