1 # This file provides information and services to the final user.
5 set(LLVM_VERSION_MAJOR @LLVM_VERSION_MAJOR@)
6 set(LLVM_VERSION_MINOR @LLVM_VERSION_MINOR@)
7 set(LLVM_VERSION_PATCH @LLVM_VERSION_PATCH@)
8 set(LLVM_VERSION_SUFFIX @LLVM_VERSION_SUFFIX@)
9 set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@)
11 set(LLVM_BUILD_TYPE @CMAKE_BUILD_TYPE@)
13 set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
15 set(LLVM_AVAILABLE_LIBS @LLVM_AVAILABLE_LIBS@)
17 @LLVM_CONFIG_LINK_LLVM_DYLIB@
19 set(LLVM_DYLIB_COMPONENTS @LLVM_DYLIB_COMPONENTS@)
21 set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
23 set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
25 set(LLVM_TARGETS_WITH_JIT @LLVM_TARGETS_WITH_JIT@)
29 set(TARGET_TRIPLE "@TARGET_TRIPLE@")
31 set(LLVM_ABI_BREAKING_CHECKS @LLVM_ABI_BREAKING_CHECKS@)
33 set(LLVM_ENABLE_ASSERTIONS @LLVM_ENABLE_ASSERTIONS@)
35 set(LLVM_ENABLE_EH @LLVM_ENABLE_EH@)
37 set(LLVM_ENABLE_RTTI @LLVM_ENABLE_RTTI@)
39 set(LLVM_ENABLE_TERMINFO @LLVM_ENABLE_TERMINFO@)
41 set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
43 set(LLVM_ENABLE_ZLIB @LLVM_ENABLE_ZLIB@)
45 set(LLVM_LIBXML2_ENABLED @LLVM_LIBXML2_ENABLED@)
47 set(LLVM_ENABLE_DIA_SDK @LLVM_ENABLE_DIA_SDK@)
49 set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
51 set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
53 set(LLVM_BUILD_32_BITS @LLVM_BUILD_32_BITS@)
55 if (NOT "@LLVM_PTHREAD_LIB@" STREQUAL "")
56 set(LLVM_PTHREAD_LIB "@LLVM_PTHREAD_LIB@")
59 set(LLVM_ENABLE_PLUGINS @LLVM_ENABLE_PLUGINS@)
60 set(LLVM_EXPORT_SYMBOLS_FOR_PLUGINS @LLVM_EXPORT_SYMBOLS_FOR_PLUGINS@)
61 set(LLVM_PLUGIN_EXT @LLVM_PLUGIN_EXT@)
63 set(LLVM_ON_UNIX @LLVM_ON_UNIX@)
65 set(LLVM_LIBDIR_SUFFIX @LLVM_LIBDIR_SUFFIX@)
67 set(LLVM_INCLUDE_DIRS "@LLVM_CONFIG_INCLUDE_DIRS@")
68 set(LLVM_LIBRARY_DIRS "@LLVM_CONFIG_LIBRARY_DIRS@")
70 # These variables are duplicated, but they must match the LLVM variables of the
71 # same name. The variables ending in "S" could some day become lists, and are
72 # preserved for convention and compatibility.
73 set(LLVM_INCLUDE_DIR "@LLVM_CONFIG_INCLUDE_DIRS@")
74 set(LLVM_LIBRARY_DIR "@LLVM_CONFIG_LIBRARY_DIRS@")
76 set(LLVM_DEFINITIONS "@LLVM_DEFINITIONS@")
77 set(LLVM_CMAKE_DIR "@LLVM_CONFIG_CMAKE_DIR@")
78 set(LLVM_BINARY_DIR "@LLVM_CONFIG_BINARY_DIR@")
79 set(LLVM_TOOLS_BINARY_DIR "@LLVM_CONFIG_TOOLS_BINARY_DIR@")
80 set(LLVM_TOOLS_INSTALL_DIR "@LLVM_TOOLS_INSTALL_DIR@")
81 set(LLVM_HAVE_OPT_VIEWER_MODULES @LLVM_HAVE_OPT_VIEWER_MODULES@)
83 if(NOT TARGET LLVMSupport)
84 set(LLVM_EXPORTED_TARGETS "@LLVM_CONFIG_EXPORTS@")
85 include("@LLVM_CONFIG_EXPORTS_FILE@")
86 @llvm_config_include_buildtree_only_exports@
89 # By creating intrinsics_gen here, subprojects that depend on LLVM's
90 # tablegen-generated headers can always depend on this target whether building
91 # in-tree with LLVM or not.
92 if(NOT TARGET intrinsics_gen)
93 add_custom_target(intrinsics_gen)
96 set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On)
97 include(${LLVM_CMAKE_DIR}/LLVM-Config.cmake)