[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / polly / cmake / PollyConfig.cmake.in
blob18c8090bafeae28a947ea3e6b64ba0dd3d687410
1 # This file allows users to call find_package(Polly) and pick up our targets.
3 @POLLY_CONFIG_CODE@
5 set(LLVM_VERSION @LLVM_VERSION_MAJOR@.@LLVM_VERSION_MINOR@.@LLVM_VERSION_PATCH@)
6 find_package(LLVM ${LLVM_VERSION} EXACT REQUIRED CONFIG
7              HINTS "@POLLY_CONFIG_LLVM_CMAKE_DIR@")
9 set(Polly_CMAKE_DIR ${CMAKE_CURRENT_LIST_DIR})
10 set(Polly_BUNDLED_ISL @POLLY_BUNDLED_ISL@)
12 set(Polly_DEFINITIONS ${LLVM_DEFINITIONS})
13 set(Polly_INCLUDE_DIRS @POLLY_CONFIG_INCLUDE_DIRS@ ${LLVM_INCLUDE_DIRS})
14 set(Polly_LIBRARY_DIRS @POLLY_CONFIG_LIBRARY_DIRS@)
15 set(Polly_EXPORTED_TARGETS @POLLY_CONFIG_EXPORTED_TARGETS@)
16 set(Polly_LIBRARIES ${LLVM_LIBRARIES} ${Polly_EXPORTED_TARGETS})
18 # Imported Targets:
19 @ISL_CONFIG_CODE@
21 if (NOT TARGET Polly)
22   add_library(Polly @POLLY_CONFIG_TARGET_Polly_TYPE@ IMPORTED)
23   set_property(TARGET Polly PROPERTY INTERFACE_LINK_LIBRARIES @ISL_TARGET@)
24 endif()
26 if (NOT TARGET LLVMPolly)
27   add_library(LLVMPolly @POLLY_CONFIG_TARGET_LLVMPolly_TYPE@ IMPORTED)
28   set_property(TARGET LLVMPolly PROPERTY INTERFACE_LINK_LIBRARIES Polly)
29 endif()
31 # Exported locations:
32 file(GLOB CONFIG_FILES "${Polly_CMAKE_DIR}/PollyExports-*.cmake")
33 foreach(f ${CONFIG_FILES})
34   include(${f})
35 endforeach()