[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / llvm / cmake / modules / LLVMConfig.cmake.in
blob74e1c6bf52e230577154bf5ac026c67a8f2c7412
1 # This file provides information and services to the final user.
3 @LLVM_CONFIG_CODE@
5 # For finding self-installed Find*.cmake packages.
6 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
8 set(LLVM_VERSION_MAJOR @LLVM_VERSION_MAJOR@)
9 set(LLVM_VERSION_MINOR @LLVM_VERSION_MINOR@)
10 set(LLVM_VERSION_PATCH @LLVM_VERSION_PATCH@)
11 set(LLVM_VERSION_SUFFIX @LLVM_VERSION_SUFFIX@)
12 set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@)
13 set(LLVM_PACKAGE_BUGREPORT @PACKAGE_BUGREPORT@)
15 set(LLVM_BUILD_TYPE @CMAKE_BUILD_TYPE@)
17 set(CMAKE_MSVC_RUNTIME_LIBRARY @CMAKE_MSVC_RUNTIME_LIBRARY@)
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@)
35 @all_llvm_lib_deps@
37 set(LLVM_TARGET_TRIPLE "@LLVM_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_FFI @LLVM_ENABLE_FFI@)
52 if(LLVM_ENABLE_FFI)
53   find_package(FFI)
54 endif()
56 set(LLVM_ENABLE_RTTI @LLVM_ENABLE_RTTI@)
58 set(LLVM_ENABLE_LIBEDIT @HAVE_LIBEDIT@)
59 if(LLVM_ENABLE_LIBEDIT)
60   find_package(LibEdit)
61 endif()
63 set(LLVM_ENABLE_TERMINFO @LLVM_ENABLE_TERMINFO@)
64 if(LLVM_ENABLE_TERMINFO)
65   find_package(Terminfo)
66 endif()
68 set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
70 set(LLVM_ENABLE_UNWIND_TABLES @LLVM_ENABLE_UNWIND_TABLES@)
72 set(LLVM_ENABLE_ZLIB @LLVM_ENABLE_ZLIB@)
73 if(LLVM_ENABLE_ZLIB)
74   set(ZLIB_ROOT @ZLIB_ROOT@)
75   find_package(ZLIB)
76 endif()
78 set(LLVM_ENABLE_ZSTD @LLVM_ENABLE_ZSTD@)
79 if(LLVM_ENABLE_ZSTD)
80   find_package(zstd)
81 endif()
83 set(LLVM_ENABLE_LIBXML2 @LLVM_ENABLE_LIBXML2@)
84 if(LLVM_ENABLE_LIBXML2)
85   find_package(LibXml2)
86 endif()
88 set(LLVM_ENABLE_CURL @LLVM_ENABLE_CURL@)
89 if(LLVM_ENABLE_CURL)
90   find_package(CURL)
91 endif()
93 set(LLVM_WITH_Z3 @LLVM_WITH_Z3@)
95 set(LLVM_ENABLE_DIA_SDK @LLVM_ENABLE_DIA_SDK@)
97 set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
99 set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
101 set(LLVM_BUILD_32_BITS @LLVM_BUILD_32_BITS@)
103 if (NOT "@LLVM_PTHREAD_LIB@" STREQUAL "")
104   set(LLVM_PTHREAD_LIB "@LLVM_PTHREAD_LIB@")
105 endif()
107 set(LLVM_ENABLE_PLUGINS @LLVM_ENABLE_PLUGINS@)
108 set(LLVM_EXPORT_SYMBOLS_FOR_PLUGINS @LLVM_EXPORT_SYMBOLS_FOR_PLUGINS@)
109 set(LLVM_PLUGIN_EXT @LLVM_PLUGIN_EXT@)
111 set(LLVM_ON_UNIX @LLVM_ON_UNIX@)
113 set(LLVM_LIBDIR_SUFFIX @LLVM_LIBDIR_SUFFIX@)
115 set(LLVM_INCLUDE_DIRS "@LLVM_CONFIG_INCLUDE_DIRS@")
116 set(LLVM_LIBRARY_DIRS "@LLVM_CONFIG_LIBRARY_DIRS@")
118 set(LLVM_APPEND_VC_REV "@LLVM_APPEND_VC_REV@")
120 # These variables are duplicated for install tree but they have different
121 # values for build tree.  LLVM_INCLUDE_DIRS contains both source
122 # and generated include directories while the following variables have
123 # them split.
125 # These are the "main" dirs
126 set(LLVM_MAIN_INCLUDE_DIR "@LLVM_CONFIG_MAIN_INCLUDE_DIR@")
127 set(LLVM_LIBRARY_DIR "@LLVM_CONFIG_LIBRARY_DIR@")
129 # This is a secondary one for generated files
130 set(LLVM_INCLUDE_DIR "@LLVM_CONFIG_INCLUDE_DIR@")
132 set(LLVM_DEFINITIONS "@LLVM_DEFINITIONS@")
133 set(LLVM_BINARY_DIR "@LLVM_CONFIG_BINARY_DIR@")
134 set(LLVM_CMAKE_DIR "@LLVM_CONFIG_CMAKE_DIR@")
135 set(LLVM_TOOLS_BINARY_DIR "@LLVM_CONFIG_TOOLS_BINARY_DIR@")
136 set(LLVM_HAVE_OPT_VIEWER_MODULES @LLVM_HAVE_OPT_VIEWER_MODULES@)
137 set(LLVM_CONFIGURATION_TYPES @CMAKE_CONFIGURATION_TYPES@)
138 set(LLVM_ENABLE_SHARED_LIBS @BUILD_SHARED_LIBS@)
140 set(LLVM_DEFAULT_EXTERNAL_LIT "@LLVM_CONFIG_DEFAULT_EXTERNAL_LIT@")
141 set(LLVM_LIT_ARGS "@LLVM_LIT_ARGS@")
143 if(NOT TARGET LLVMSupport)
144   @LLVM_CONFIG_INCLUDE_EXPORTS@
145   @llvm_config_include_buildtree_only_exports@
146 endif()
148 # By creating the following targets here, subprojects that depend on
149 # LLVM's tablegen-generated headers can always depend on this target
150 # whether building in-tree with LLVM or not.
151 if(NOT TARGET intrinsics_gen)
152   add_custom_target(intrinsics_gen)
153 endif()
154 if(NOT TARGET omp_gen)
155   add_custom_target(omp_gen)
156 endif()
157 if(NOT TARGET acc_gen)
158   add_custom_target(acc_gen)
159 endif()
160 if(NOT TARGET RISCVTargetParserTableGen)
161   add_custom_target(RISCVTargetParserTableGen)
162 endif()
164 set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On)
165 include(${LLVM_CMAKE_DIR}/LLVM-Config.cmake)