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_USE_CRT_DEBUG @LLVM_USE_CRT_DEBUG@)
14 set(LLVM_USE_CRT_MINSIZEREL @LLVM_USE_CRT_MINSIZEREL@)
15 set(LLVM_USE_CRT_RELEASE @LLVM_USE_CRT_RELEASE@)
16 set(LLVM_USE_CRT_RELWITHDEBINFO @LLVM_USE_CRT_RELWITHDEBINFO@)
18 set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
20 set(LLVM_AVAILABLE_LIBS @LLVM_AVAILABLE_LIBS@)
22 @LLVM_CONFIG_LINK_LLVM_DYLIB@
24 set(LLVM_DYLIB_COMPONENTS @LLVM_DYLIB_COMPONENTS@)
26 set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
28 set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
30 set(LLVM_TARGETS_WITH_JIT @LLVM_TARGETS_WITH_JIT@)
34 set(TARGET_TRIPLE "@TARGET_TRIPLE@")
36 set(LLVM_ABI_BREAKING_CHECKS @LLVM_ABI_BREAKING_CHECKS@)
38 set(LLVM_ENABLE_ASSERTIONS @LLVM_ENABLE_ASSERTIONS@)
40 set(LLVM_ENABLE_EH @LLVM_ENABLE_EH@)
42 set(LLVM_ENABLE_RTTI @LLVM_ENABLE_RTTI@)
44 set(LLVM_ENABLE_TERMINFO @LLVM_ENABLE_TERMINFO@)
46 set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
48 set(LLVM_ENABLE_UNWIND_TABLES @LLVM_ENABLE_UNWIND_TABLES@)
50 set(LLVM_ENABLE_ZLIB @LLVM_ENABLE_ZLIB@)
52 set(LLVM_LIBXML2_ENABLED @LLVM_LIBXML2_ENABLED@)
54 set(LLVM_WITH_Z3 @LLVM_WITH_Z3@)
56 set(LLVM_ENABLE_DIA_SDK @LLVM_ENABLE_DIA_SDK@)
58 set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
60 set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
62 set(LLVM_BUILD_32_BITS @LLVM_BUILD_32_BITS@)
64 if (NOT "@LLVM_PTHREAD_LIB@" STREQUAL "")
65 set(LLVM_PTHREAD_LIB "@LLVM_PTHREAD_LIB@")
68 set(LLVM_ENABLE_PLUGINS @LLVM_ENABLE_PLUGINS@)
69 set(LLVM_EXPORT_SYMBOLS_FOR_PLUGINS @LLVM_EXPORT_SYMBOLS_FOR_PLUGINS@)
70 set(LLVM_PLUGIN_EXT @LLVM_PLUGIN_EXT@)
72 set(LLVM_ON_UNIX @LLVM_ON_UNIX@)
74 set(LLVM_LIBDIR_SUFFIX @LLVM_LIBDIR_SUFFIX@)
76 set(LLVM_INCLUDE_DIRS "@LLVM_CONFIG_INCLUDE_DIRS@")
77 set(LLVM_LIBRARY_DIRS "@LLVM_CONFIG_LIBRARY_DIRS@")
79 # These variables are duplicated for install tree but they have different
80 # values for build tree. LLVM_INCLUDE_DIRS contains both source
81 # and generated include directories while the following variables have
83 set(LLVM_INCLUDE_DIR "@LLVM_CONFIG_INCLUDE_DIR@")
84 set(LLVM_MAIN_INCLUDE_DIR "@LLVM_CONFIG_MAIN_INCLUDE_DIR@")
85 set(LLVM_LIBRARY_DIR "@LLVM_CONFIG_LIBRARY_DIRS@")
87 set(LLVM_DEFINITIONS "@LLVM_DEFINITIONS@")
88 set(LLVM_CMAKE_DIR "@LLVM_CONFIG_CMAKE_DIR@")
89 set(LLVM_BINARY_DIR "@LLVM_CONFIG_BINARY_DIR@")
90 set(LLVM_TOOLS_BINARY_DIR "@LLVM_CONFIG_TOOLS_BINARY_DIR@")
91 set(LLVM_TOOLS_INSTALL_DIR "@LLVM_TOOLS_INSTALL_DIR@")
92 set(LLVM_HAVE_OPT_VIEWER_MODULES @LLVM_HAVE_OPT_VIEWER_MODULES@)
93 set(LLVM_CONFIGURATION_TYPES @CMAKE_CONFIGURATION_TYPES@)
94 set(LLVM_ENABLE_SHARED_LIBS @BUILD_SHARED_LIBS@)
96 if(NOT TARGET LLVMSupport)
97 set(LLVM_EXPORTED_TARGETS "@LLVM_CONFIG_EXPORTS@")
98 include("@LLVM_CONFIG_EXPORTS_FILE@")
99 @llvm_config_include_buildtree_only_exports@
102 # By creating intrinsics_gen here, subprojects that depend on LLVM's
103 # tablegen-generated headers can always depend on this target whether building
104 # in-tree with LLVM or not.
105 if(NOT TARGET intrinsics_gen)
106 add_custom_target(intrinsics_gen)
109 set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On)
110 include(${LLVM_CMAKE_DIR}/LLVM-Config.cmake)