diff --git a/CMakeLists.txt b/CMakeLists.txt index 6893e974..2b2d892f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -218,6 +218,10 @@ add_subdirectory(cl_headers) set(LLVM_REQUIRES_EH ON) +if(LLVM_PACKAGE_VERSION VERSION_GREATER_EQUAL 10.0.0 AND Polly IN_LIST LLVM_AVAILABLE_LIBS) + list(APPEND ADDITIONAL_LIBS Polly) +endif() + add_llvm_library(${TARGET_NAME} SHARED ${TARGET_INCLUDE_FILES} ${TARGET_SOURCE_FILES}