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