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@)
10 set(LLVM_PACKAGE_BUGREPORT @PACKAGE_BUGREPORT@)
12 set(LLVM_BUILD_TYPE @CMAKE_BUILD_TYPE@)
14 set(LLVM_USE_CRT_DEBUG @LLVM_USE_CRT_DEBUG@)
15 set(LLVM_USE_CRT_MINSIZEREL @LLVM_USE_CRT_MINSIZEREL@)
16 set(LLVM_USE_CRT_RELEASE @LLVM_USE_CRT_RELEASE@)
17 set(LLVM_USE_CRT_RELWITHDEBINFO @LLVM_USE_CRT_RELWITHDEBINFO@)
19 set(LLVM_USE_SPLIT_DWARF @LLVM_USE_SPLIT_DWARF@)
21 set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
23 set(LLVM_AVAILABLE_LIBS @LLVM_AVAILABLE_LIBS@)
25 @LLVM_CONFIG_LINK_LLVM_DYLIB@
27 set(LLVM_DYLIB_COMPONENTS @LLVM_DYLIB_COMPONENTS@)
29 set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
31 set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
33 set(LLVM_TARGETS_WITH_JIT @LLVM_TARGETS_WITH_JIT@)
37 set(TARGET_TRIPLE "@TARGET_TRIPLE@")
39 set(LLVM_HOST_TRIPLE "@LLVM_HOST_TRIPLE@")
41 set(LLVM_ABI_BREAKING_CHECKS @LLVM_ABI_BREAKING_CHECKS@)
43 set(LLVM_ENABLE_WARNINGS @LLVM_ENABLE_WARNINGS@)
45 set(LLVM_ENABLE_EXPENSIVE_CHECKS @LLVM_ENABLE_EXPENSIVE_CHECKS@)
47 set(LLVM_ENABLE_ASSERTIONS @LLVM_ENABLE_ASSERTIONS@)
49 set(LLVM_ENABLE_EH @LLVM_ENABLE_EH@)
51 set(LLVM_ENABLE_RTTI @LLVM_ENABLE_RTTI@)
53 set(LLVM_ENABLE_TERMINFO @LLVM_ENABLE_TERMINFO@)
55 set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
57 set(LLVM_ENABLE_UNWIND_TABLES @LLVM_ENABLE_UNWIND_TABLES@)
59 set(LLVM_ENABLE_ZLIB @LLVM_ENABLE_ZLIB@)
64 set(LLVM_ENABLE_LIBXML2 @LLVM_ENABLE_LIBXML2@)
65 if(LLVM_ENABLE_LIBXML2)
69 set(LLVM_WITH_Z3 @LLVM_WITH_Z3@)
71 set(LLVM_ENABLE_DIA_SDK @LLVM_ENABLE_DIA_SDK@)
73 set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
75 set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
77 set(LLVM_BUILD_32_BITS @LLVM_BUILD_32_BITS@)
79 set(LLVM_ENABLE_NEW_PASS_MANAGER @LLVM_ENABLE_NEW_PASS_MANAGER@)
81 if (NOT "@LLVM_PTHREAD_LIB@" STREQUAL "")
82 set(LLVM_PTHREAD_LIB "@LLVM_PTHREAD_LIB@")
85 set(LLVM_ENABLE_PLUGINS @LLVM_ENABLE_PLUGINS@)
86 set(LLVM_EXPORT_SYMBOLS_FOR_PLUGINS @LLVM_EXPORT_SYMBOLS_FOR_PLUGINS@)
87 set(LLVM_PLUGIN_EXT @LLVM_PLUGIN_EXT@)
89 set(LLVM_ON_UNIX @LLVM_ON_UNIX@)
91 set(LLVM_LIBDIR_SUFFIX @LLVM_LIBDIR_SUFFIX@)
93 set(LLVM_INCLUDE_DIRS "@LLVM_CONFIG_INCLUDE_DIRS@")
94 set(LLVM_LIBRARY_DIRS "@LLVM_CONFIG_LIBRARY_DIRS@")
96 set(LLVM_APPEND_VC_REV "@LLVM_APPEND_VC_REV@")
98 # These variables are duplicated for install tree but they have different
99 # values for build tree. LLVM_INCLUDE_DIRS contains both source
100 # and generated include directories while the following variables have
102 set(LLVM_INCLUDE_DIR "@LLVM_CONFIG_INCLUDE_DIR@")
103 set(LLVM_MAIN_INCLUDE_DIR "@LLVM_CONFIG_MAIN_INCLUDE_DIR@")
104 set(LLVM_LIBRARY_DIR "@LLVM_CONFIG_LIBRARY_DIRS@")
106 set(LLVM_DEFINITIONS "@LLVM_DEFINITIONS@")
107 set(LLVM_CMAKE_DIR "@LLVM_CONFIG_CMAKE_DIR@")
108 set(LLVM_BINARY_DIR "@LLVM_CONFIG_BINARY_DIR@")
109 set(LLVM_TOOLS_BINARY_DIR "@LLVM_CONFIG_TOOLS_BINARY_DIR@")
110 set(LLVM_TOOLS_INSTALL_DIR "@LLVM_TOOLS_INSTALL_DIR@")
111 set(LLVM_HAVE_OPT_VIEWER_MODULES @LLVM_HAVE_OPT_VIEWER_MODULES@)
112 set(LLVM_CONFIGURATION_TYPES @CMAKE_CONFIGURATION_TYPES@)
113 set(LLVM_ENABLE_SHARED_LIBS @BUILD_SHARED_LIBS@)
115 set(LLVM_DEFAULT_EXTERNAL_LIT "@LLVM_CONFIG_DEFAULT_EXTERNAL_LIT@")
116 set(LLVM_LIT_ARGS "@LLVM_LIT_ARGS@")
118 set(LLVM_HAVE_LIBXAR "@LLVM_HAVE_LIBXAR@")
120 if(NOT TARGET LLVMSupport)
121 @LLVM_CONFIG_INCLUDE_EXPORTS@
122 @llvm_config_include_buildtree_only_exports@
125 # By creating intrinsics_gen, omp_gen and acc_gen here, subprojects that depend
126 # on LLVM's tablegen-generated headers can always depend on this target whether
127 # building in-tree with LLVM or not.
128 if(NOT TARGET intrinsics_gen)
129 add_custom_target(intrinsics_gen)
131 if(NOT TARGET omp_gen)
132 add_custom_target(omp_gen)
134 if(NOT TARGET acc_gen)
135 add_custom_target(acc_gen)
138 set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On)
139 include(${LLVM_CMAKE_DIR}/LLVM-Config.cmake)