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_EXPENSIVE_CHECKS @LLVM_ENABLE_EXPENSIVE_CHECKS@)
40 set(LLVM_ENABLE_ASSERTIONS @LLVM_ENABLE_ASSERTIONS@)
42 set(LLVM_ENABLE_EH @LLVM_ENABLE_EH@)
44 set(LLVM_ENABLE_RTTI @LLVM_ENABLE_RTTI@)
46 set(LLVM_ENABLE_TERMINFO @LLVM_ENABLE_TERMINFO@)
48 set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
50 set(LLVM_ENABLE_UNWIND_TABLES @LLVM_ENABLE_UNWIND_TABLES@)
52 set(LLVM_ENABLE_ZLIB @LLVM_ENABLE_ZLIB@)
54 set(LLVM_LIBXML2_ENABLED @LLVM_LIBXML2_ENABLED@)
56 set(LLVM_WITH_Z3 @LLVM_WITH_Z3@)
58 set(LLVM_ENABLE_DIA_SDK @LLVM_ENABLE_DIA_SDK@)
60 set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
62 set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
64 set(LLVM_BUILD_32_BITS @LLVM_BUILD_32_BITS@)
66 if (NOT "@LLVM_PTHREAD_LIB@" STREQUAL "")
67 set(LLVM_PTHREAD_LIB "@LLVM_PTHREAD_LIB@")
70 set(LLVM_ENABLE_PLUGINS @LLVM_ENABLE_PLUGINS@)
71 set(LLVM_EXPORT_SYMBOLS_FOR_PLUGINS @LLVM_EXPORT_SYMBOLS_FOR_PLUGINS@)
72 set(LLVM_PLUGIN_EXT @LLVM_PLUGIN_EXT@)
74 set(LLVM_ON_UNIX @LLVM_ON_UNIX@)
76 set(LLVM_LIBDIR_SUFFIX @LLVM_LIBDIR_SUFFIX@)
78 set(LLVM_INCLUDE_DIRS "@LLVM_CONFIG_INCLUDE_DIRS@")
79 set(LLVM_LIBRARY_DIRS "@LLVM_CONFIG_LIBRARY_DIRS@")
81 set(LLVM_APPEND_VC_REV "@LLVM_APPEND_VC_REV@")
83 # These variables are duplicated for install tree but they have different
84 # values for build tree. LLVM_INCLUDE_DIRS contains both source
85 # and generated include directories while the following variables have
87 set(LLVM_INCLUDE_DIR "@LLVM_CONFIG_INCLUDE_DIR@")
88 set(LLVM_MAIN_INCLUDE_DIR "@LLVM_CONFIG_MAIN_INCLUDE_DIR@")
89 set(LLVM_LIBRARY_DIR "@LLVM_CONFIG_LIBRARY_DIRS@")
91 set(LLVM_DEFINITIONS "@LLVM_DEFINITIONS@")
92 set(LLVM_CMAKE_DIR "@LLVM_CONFIG_CMAKE_DIR@")
93 set(LLVM_BINARY_DIR "@LLVM_CONFIG_BINARY_DIR@")
94 set(LLVM_TOOLS_BINARY_DIR "@LLVM_CONFIG_TOOLS_BINARY_DIR@")
95 set(LLVM_TOOLS_INSTALL_DIR "@LLVM_TOOLS_INSTALL_DIR@")
96 set(LLVM_HAVE_OPT_VIEWER_MODULES @LLVM_HAVE_OPT_VIEWER_MODULES@)
97 set(LLVM_CONFIGURATION_TYPES @CMAKE_CONFIGURATION_TYPES@)
98 set(LLVM_ENABLE_SHARED_LIBS @BUILD_SHARED_LIBS@)
100 if(NOT TARGET LLVMSupport)
101 set(LLVM_EXPORTED_TARGETS "@LLVM_CONFIG_EXPORTS@")
102 include("@LLVM_CONFIG_EXPORTS_FILE@")
103 @llvm_config_include_buildtree_only_exports@
106 # By creating intrinsics_gen here, subprojects that depend on LLVM's
107 # tablegen-generated headers can always depend on this target whether building
108 # in-tree with LLVM or not.
109 if(NOT TARGET intrinsics_gen)
110 add_custom_target(intrinsics_gen)
113 set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On)
114 include(${LLVM_CMAKE_DIR}/LLVM-Config.cmake)