1# This file provides information and services to the final user. 2 3@LLVM_CONFIG_CODE@ 4 5set(LLVM_VERSION_MAJOR @LLVM_VERSION_MAJOR@) 6set(LLVM_VERSION_MINOR @LLVM_VERSION_MINOR@) 7set(LLVM_VERSION_PATCH @LLVM_VERSION_PATCH@) 8set(LLVM_VERSION_SUFFIX @LLVM_VERSION_SUFFIX@) 9set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@) 10set(LLVM_PACKAGE_BUGREPORT @PACKAGE_BUGREPORT@) 11 12set(LLVM_BUILD_TYPE @CMAKE_BUILD_TYPE@) 13 14set(LLVM_USE_CRT_DEBUG @LLVM_USE_CRT_DEBUG@) 15set(LLVM_USE_CRT_MINSIZEREL @LLVM_USE_CRT_MINSIZEREL@) 16set(LLVM_USE_CRT_RELEASE @LLVM_USE_CRT_RELEASE@) 17set(LLVM_USE_CRT_RELWITHDEBINFO @LLVM_USE_CRT_RELWITHDEBINFO@) 18 19set(LLVM_USE_SPLIT_DWARF @LLVM_USE_SPLIT_DWARF@) 20 21set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@) 22 23set(LLVM_AVAILABLE_LIBS @LLVM_AVAILABLE_LIBS@) 24 25@LLVM_CONFIG_LINK_LLVM_DYLIB@ 26 27set(LLVM_DYLIB_COMPONENTS @LLVM_DYLIB_COMPONENTS@) 28 29set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@) 30 31set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@) 32 33set(LLVM_TARGETS_WITH_JIT @LLVM_TARGETS_WITH_JIT@) 34 35@all_llvm_lib_deps@ 36 37set(TARGET_TRIPLE "@TARGET_TRIPLE@") 38 39set(LLVM_ABI_BREAKING_CHECKS @LLVM_ABI_BREAKING_CHECKS@) 40 41set(LLVM_ENABLE_WARNINGS @LLVM_ENABLE_WARNINGS@) 42 43set(LLVM_ENABLE_EXPENSIVE_CHECKS @LLVM_ENABLE_EXPENSIVE_CHECKS@) 44 45set(LLVM_ENABLE_ASSERTIONS @LLVM_ENABLE_ASSERTIONS@) 46 47set(LLVM_ENABLE_EH @LLVM_ENABLE_EH@) 48 49set(LLVM_ENABLE_RTTI @LLVM_ENABLE_RTTI@) 50 51set(LLVM_ENABLE_TERMINFO @LLVM_ENABLE_TERMINFO@) 52 53set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@) 54 55set(LLVM_ENABLE_UNWIND_TABLES @LLVM_ENABLE_UNWIND_TABLES@) 56 57set(LLVM_ENABLE_ZLIB @LLVM_ENABLE_ZLIB@) 58if(LLVM_ENABLE_ZLIB) 59 find_package(ZLIB) 60endif() 61 62set(LLVM_ENABLE_LIBXML2 @LLVM_ENABLE_LIBXML2@) 63if(LLVM_ENABLE_LIBXML2) 64 find_package(LibXml2) 65endif() 66 67set(LLVM_WITH_Z3 @LLVM_WITH_Z3@) 68 69set(LLVM_ENABLE_DIA_SDK @LLVM_ENABLE_DIA_SDK@) 70 71set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@) 72 73set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@) 74 75set(LLVM_BUILD_32_BITS @LLVM_BUILD_32_BITS@) 76 77if (NOT "@LLVM_PTHREAD_LIB@" STREQUAL "") 78 set(LLVM_PTHREAD_LIB "@LLVM_PTHREAD_LIB@") 79endif() 80 81set(LLVM_ENABLE_PLUGINS @LLVM_ENABLE_PLUGINS@) 82set(LLVM_EXPORT_SYMBOLS_FOR_PLUGINS @LLVM_EXPORT_SYMBOLS_FOR_PLUGINS@) 83set(LLVM_PLUGIN_EXT @LLVM_PLUGIN_EXT@) 84 85set(LLVM_ON_UNIX @LLVM_ON_UNIX@) 86 87set(LLVM_LIBDIR_SUFFIX @LLVM_LIBDIR_SUFFIX@) 88 89set(LLVM_INCLUDE_DIRS "@LLVM_CONFIG_INCLUDE_DIRS@") 90set(LLVM_LIBRARY_DIRS "@LLVM_CONFIG_LIBRARY_DIRS@") 91 92set(LLVM_APPEND_VC_REV "@LLVM_APPEND_VC_REV@") 93 94# These variables are duplicated for install tree but they have different 95# values for build tree. LLVM_INCLUDE_DIRS contains both source 96# and generated include directories while the following variables have 97# them split. 98set(LLVM_INCLUDE_DIR "@LLVM_CONFIG_INCLUDE_DIR@") 99set(LLVM_MAIN_INCLUDE_DIR "@LLVM_CONFIG_MAIN_INCLUDE_DIR@") 100set(LLVM_LIBRARY_DIR "@LLVM_CONFIG_LIBRARY_DIRS@") 101 102set(LLVM_DEFINITIONS "@LLVM_DEFINITIONS@") 103set(LLVM_CMAKE_DIR "@LLVM_CONFIG_CMAKE_DIR@") 104set(LLVM_BINARY_DIR "@LLVM_CONFIG_BINARY_DIR@") 105set(LLVM_TOOLS_BINARY_DIR "@LLVM_CONFIG_TOOLS_BINARY_DIR@") 106set(LLVM_TOOLS_INSTALL_DIR "@LLVM_TOOLS_INSTALL_DIR@") 107set(LLVM_HAVE_OPT_VIEWER_MODULES @LLVM_HAVE_OPT_VIEWER_MODULES@) 108set(LLVM_CONFIGURATION_TYPES @CMAKE_CONFIGURATION_TYPES@) 109set(LLVM_ENABLE_SHARED_LIBS @BUILD_SHARED_LIBS@) 110 111set(LLVM_DEFAULT_EXTERNAL_LIT "@LLVM_CONFIG_DEFAULT_EXTERNAL_LIT@") 112set(LLVM_LIT_ARGS "@LLVM_LIT_ARGS@") 113 114if(NOT TARGET LLVMSupport) 115 set(LLVM_EXPORTED_TARGETS "@LLVM_CONFIG_EXPORTS@") 116 include("@LLVM_CONFIG_EXPORTS_FILE@") 117 @llvm_config_include_buildtree_only_exports@ 118endif() 119 120# By creating intrinsics_gen, omp_gen and acc_gen here, subprojects that depend 121# on LLVM's tablegen-generated headers can always depend on this target whether 122# building in-tree with LLVM or not. 123if(NOT TARGET intrinsics_gen) 124 add_custom_target(intrinsics_gen) 125endif() 126if(NOT TARGET omp_gen) 127 add_custom_target(omp_gen) 128endif() 129if(NOT TARGET acc_gen) 130 add_custom_target(acc_gen) 131endif() 132 133set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On) 134include(${LLVM_CMAKE_DIR}/LLVM-Config.cmake) 135