blob: 8b4c22a3031419cddf4a670d7d58bbac53cacc8a [file] [log] [blame]
Oscar Fuentes945f64e2010-08-11 00:51:32 +00001# This file provides information and services to the final user.
2
NAKAMURA Takumi43d63842014-02-09 16:35:51 +00003@LLVM_CONFIG_CODE@
4
Dylan Noblesmithc6c7a582012-02-13 18:48:10 +00005set(LLVM_VERSION_MAJOR @LLVM_VERSION_MAJOR@)
6set(LLVM_VERSION_MINOR @LLVM_VERSION_MINOR@)
Eric Christopher87e545f2014-04-16 23:15:28 +00007set(LLVM_VERSION_PATCH @LLVM_VERSION_PATCH@)
Oscar Fuentesc6f2d0a2011-04-11 14:52:39 +00008set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@)
Oscar Fuentesf4202ba2011-02-03 20:57:36 +00009
Michael Gottesman97ba5732016-06-25 11:31:50 +000010set(LLVM_BUILD_TYPE @CMAKE_BUILD_TYPE@)
11
Oscar Fuentesa389c582010-08-09 03:26:43 +000012set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
13
NAKAMURA Takumi12fedb02014-02-21 14:17:07 +000014set(LLVM_AVAILABLE_LIBS @LLVM_AVAILABLE_LIBS@)
Oscar Fuentesa389c582010-08-09 03:26:43 +000015
Philip Pfaffe5fed24a2018-07-27 10:57:51 +000016@LLVM_CONFIG_LINK_LLVM_DYLIB@
Philip Pfaffe3b8b3c22018-07-18 08:53:31 +000017
Pavel Labathd54c3472018-03-14 09:28:38 +000018set(LLVM_DYLIB_COMPONENTS @LLVM_DYLIB_COMPONENTS@)
19
Oscar Fuentesfb812672010-09-29 15:28:55 +000020set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
21
Oscar Fuentesa389c582010-08-09 03:26:43 +000022set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
23
Oscar Fuentese2a11472011-04-13 15:25:31 +000024set(LLVM_TARGETS_WITH_JIT @LLVM_TARGETS_WITH_JIT@)
25
Chandler Carruth68b23112011-07-29 23:52:01 +000026@all_llvm_lib_deps@
27
Oscar Fuentes2ece0b12011-02-23 11:28:40 +000028set(TARGET_TRIPLE "@TARGET_TRIPLE@")
29
NAKAMURA Takumic063c472015-04-01 11:46:15 +000030set(LLVM_ABI_BREAKING_CHECKS @LLVM_ABI_BREAKING_CHECKS@)
31
Dan Liew12902a02014-07-21 14:17:15 +000032set(LLVM_ENABLE_ASSERTIONS @LLVM_ENABLE_ASSERTIONS@)
33
Dan Liew066f50a2014-07-22 15:41:33 +000034set(LLVM_ENABLE_EH @LLVM_ENABLE_EH@)
35
36set(LLVM_ENABLE_RTTI @LLVM_ENABLE_RTTI@)
37
Chandler Carruthf11f1e42013-08-12 09:49:17 +000038set(LLVM_ENABLE_TERMINFO @LLVM_ENABLE_TERMINFO@)
Chandler Carruthcad7e5e2013-08-07 08:47:36 +000039
Oscar Fuentesa6c13372010-08-09 03:47:11 +000040set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
Oscar Fuentesa389c582010-08-09 03:26:43 +000041
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000042set(LLVM_ENABLE_ZLIB @LLVM_ENABLE_ZLIB@)
43
Michal Gorny92061be2018-01-19 17:47:03 +000044set(LLVM_LIBXML2_ENABLED @LLVM_LIBXML2_ENABLED@)
45
Michal Gorny89b6f162017-01-02 18:19:35 +000046set(LLVM_ENABLE_DIA_SDK @LLVM_ENABLE_DIA_SDK@)
47
Oscar Fuentes945f64e2010-08-11 00:51:32 +000048set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
49
Oscar Fuentesf4202ba2011-02-03 20:57:36 +000050set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
51
John Brawnc5a47bb2016-07-01 14:22:52 +000052set(LLVM_BUILD_32_BITS @LLVM_BUILD_32_BITS@)
53
Eric Fiselier87c87f42017-02-10 01:59:20 +000054if (NOT "@LLVM_PTHREAD_LIB@" STREQUAL "")
55 set(LLVM_PTHREAD_LIB "@LLVM_PTHREAD_LIB@")
56endif()
57
John Brawn8a3ec2a2015-09-30 10:34:06 +000058set(LLVM_ENABLE_PLUGINS @LLVM_ENABLE_PLUGINS@)
John Brawn3546c2f2016-05-26 11:16:43 +000059set(LLVM_EXPORT_SYMBOLS_FOR_PLUGINS @LLVM_EXPORT_SYMBOLS_FOR_PLUGINS@)
John Brawn8a3ec2a2015-09-30 10:34:06 +000060set(LLVM_PLUGIN_EXT @LLVM_PLUGIN_EXT@)
61
Oscar Fuentes8b29cf52011-04-03 16:12:38 +000062set(LLVM_ON_UNIX @LLVM_ON_UNIX@)
Oscar Fuentesf4202ba2011-02-03 20:57:36 +000063
Chandler Carruthab8df0b2014-12-29 11:16:23 +000064set(LLVM_LIBDIR_SUFFIX @LLVM_LIBDIR_SUFFIX@)
65
Chris Bienemanbe765192016-09-01 16:43:39 +000066set(LLVM_INCLUDE_DIRS "@LLVM_CONFIG_INCLUDE_DIRS@")
67set(LLVM_LIBRARY_DIRS "@LLVM_CONFIG_LIBRARY_DIRS@")
68
69# These variables are duplicated, but they must match the LLVM variables of the
70# same name. The variables ending in "S" could some day become lists, and are
71# preserved for convention and compatibility.
Chris Bieneman5349efc2016-08-29 21:26:32 +000072set(LLVM_INCLUDE_DIR "@LLVM_CONFIG_INCLUDE_DIRS@")
Chris Bieneman1f4af492016-05-10 19:45:17 +000073set(LLVM_LIBRARY_DIR "@LLVM_CONFIG_LIBRARY_DIRS@")
Chris Bienemanbe765192016-09-01 16:43:39 +000074
John Brawn8a3ec2a2015-09-30 10:34:06 +000075set(LLVM_DEFINITIONS "@LLVM_DEFINITIONS@")
NAKAMURA Takumi43d63842014-02-09 16:35:51 +000076set(LLVM_CMAKE_DIR "@LLVM_CONFIG_CMAKE_DIR@")
Chris Bieneman40a65062016-06-22 21:01:19 +000077set(LLVM_BINARY_DIR "@LLVM_CONFIG_BINARY_DIR@")
Dan Liew39828132014-07-22 17:48:51 +000078set(LLVM_TOOLS_BINARY_DIR "@LLVM_CONFIG_TOOLS_BINARY_DIR@")
Chris Bienemand0e1c2a2016-06-09 17:22:02 +000079set(LLVM_TOOLS_INSTALL_DIR "@LLVM_TOOLS_INSTALL_DIR@")
Adam Nemetdc7bd1b2017-12-01 01:44:26 +000080set(LLVM_HAVE_OPT_VIEWER_MODULES @LLVM_HAVE_OPT_VIEWER_MODULES@)
Oscar Fuentesdbe99ba2011-04-10 16:17:49 +000081
NAKAMURA Takumi363e85a2014-02-09 16:36:28 +000082if(NOT TARGET LLVMSupport)
Michael Gottesman31e93632016-09-09 19:45:34 +000083 set(LLVM_EXPORTED_TARGETS "@LLVM_CONFIG_EXPORTS@")
NAKAMURA Takumi363e85a2014-02-09 16:36:28 +000084 include("@LLVM_CONFIG_EXPORTS_FILE@")
Michael Gottesman31e93632016-09-09 19:45:34 +000085 @llvm_config_include_buildtree_only_exports@
NAKAMURA Takumi363e85a2014-02-09 16:36:28 +000086endif()
87
Chris Bieneman57265892017-07-28 15:33:35 +000088# By creating intrinsics_gen here, subprojects that depend on LLVM's
89# tablegen-generated headers can always depend on this target whether building
90# in-tree with LLVM or not.
91if(NOT TARGET intrinsics_gen)
92 add_custom_target(intrinsics_gen)
93endif()
94
Chris Bieneman84ad1f82017-02-09 18:14:12 +000095set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On)
NAKAMURA Takumi43d63842014-02-09 16:35:51 +000096include(${LLVM_CMAKE_DIR}/LLVM-Config.cmake)