blob: 7ca06381d90f56d14c06b8edcdb08e16ad3f6ea0 [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@)
Michal Gorny24cb7542018-08-08 20:44:58 +00008set(LLVM_VERSION_SUFFIX @LLVM_VERSION_SUFFIX@)
Oscar Fuentesc6f2d0a2011-04-11 14:52:39 +00009set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@)
Oscar Fuentesf4202ba2011-02-03 20:57:36 +000010
Michael Gottesman97ba5732016-06-25 11:31:50 +000011set(LLVM_BUILD_TYPE @CMAKE_BUILD_TYPE@)
12
Oscar Fuentesa389c582010-08-09 03:26:43 +000013set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
14
NAKAMURA Takumi12fedb02014-02-21 14:17:07 +000015set(LLVM_AVAILABLE_LIBS @LLVM_AVAILABLE_LIBS@)
Oscar Fuentesa389c582010-08-09 03:26:43 +000016
Philip Pfaffe5fed24a2018-07-27 10:57:51 +000017@LLVM_CONFIG_LINK_LLVM_DYLIB@
Philip Pfaffe3b8b3c22018-07-18 08:53:31 +000018
Pavel Labathd54c3472018-03-14 09:28:38 +000019set(LLVM_DYLIB_COMPONENTS @LLVM_DYLIB_COMPONENTS@)
20
Oscar Fuentesfb812672010-09-29 15:28:55 +000021set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
22
Oscar Fuentesa389c582010-08-09 03:26:43 +000023set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
24
Oscar Fuentese2a11472011-04-13 15:25:31 +000025set(LLVM_TARGETS_WITH_JIT @LLVM_TARGETS_WITH_JIT@)
26
Chandler Carruth68b23112011-07-29 23:52:01 +000027@all_llvm_lib_deps@
28
Oscar Fuentes2ece0b12011-02-23 11:28:40 +000029set(TARGET_TRIPLE "@TARGET_TRIPLE@")
30
NAKAMURA Takumic063c472015-04-01 11:46:15 +000031set(LLVM_ABI_BREAKING_CHECKS @LLVM_ABI_BREAKING_CHECKS@)
32
Dan Liew12902a02014-07-21 14:17:15 +000033set(LLVM_ENABLE_ASSERTIONS @LLVM_ENABLE_ASSERTIONS@)
34
Dan Liew066f50a2014-07-22 15:41:33 +000035set(LLVM_ENABLE_EH @LLVM_ENABLE_EH@)
36
37set(LLVM_ENABLE_RTTI @LLVM_ENABLE_RTTI@)
38
Chandler Carruthf11f1e42013-08-12 09:49:17 +000039set(LLVM_ENABLE_TERMINFO @LLVM_ENABLE_TERMINFO@)
Chandler Carruthcad7e5e2013-08-07 08:47:36 +000040
Oscar Fuentesa6c13372010-08-09 03:47:11 +000041set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
Oscar Fuentesa389c582010-08-09 03:26:43 +000042
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000043set(LLVM_ENABLE_ZLIB @LLVM_ENABLE_ZLIB@)
44
Michal Gorny92061be2018-01-19 17:47:03 +000045set(LLVM_LIBXML2_ENABLED @LLVM_LIBXML2_ENABLED@)
46
Michal Gorny89b6f162017-01-02 18:19:35 +000047set(LLVM_ENABLE_DIA_SDK @LLVM_ENABLE_DIA_SDK@)
48
Oscar Fuentes945f64e2010-08-11 00:51:32 +000049set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
50
Oscar Fuentesf4202ba2011-02-03 20:57:36 +000051set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
52
John Brawnc5a47bb2016-07-01 14:22:52 +000053set(LLVM_BUILD_32_BITS @LLVM_BUILD_32_BITS@)
54
Eric Fiselier87c87f42017-02-10 01:59:20 +000055if (NOT "@LLVM_PTHREAD_LIB@" STREQUAL "")
56 set(LLVM_PTHREAD_LIB "@LLVM_PTHREAD_LIB@")
57endif()
58
John Brawn8a3ec2a2015-09-30 10:34:06 +000059set(LLVM_ENABLE_PLUGINS @LLVM_ENABLE_PLUGINS@)
John Brawn3546c2f2016-05-26 11:16:43 +000060set(LLVM_EXPORT_SYMBOLS_FOR_PLUGINS @LLVM_EXPORT_SYMBOLS_FOR_PLUGINS@)
John Brawn8a3ec2a2015-09-30 10:34:06 +000061set(LLVM_PLUGIN_EXT @LLVM_PLUGIN_EXT@)
62
Oscar Fuentes8b29cf52011-04-03 16:12:38 +000063set(LLVM_ON_UNIX @LLVM_ON_UNIX@)
Oscar Fuentesf4202ba2011-02-03 20:57:36 +000064
Chandler Carruthab8df0b2014-12-29 11:16:23 +000065set(LLVM_LIBDIR_SUFFIX @LLVM_LIBDIR_SUFFIX@)
66
Chris Bienemanbe765192016-09-01 16:43:39 +000067set(LLVM_INCLUDE_DIRS "@LLVM_CONFIG_INCLUDE_DIRS@")
68set(LLVM_LIBRARY_DIRS "@LLVM_CONFIG_LIBRARY_DIRS@")
69
70# These variables are duplicated, but they must match the LLVM variables of the
71# same name. The variables ending in "S" could some day become lists, and are
72# preserved for convention and compatibility.
Chris Bieneman5349efc2016-08-29 21:26:32 +000073set(LLVM_INCLUDE_DIR "@LLVM_CONFIG_INCLUDE_DIRS@")
Chris Bieneman1f4af492016-05-10 19:45:17 +000074set(LLVM_LIBRARY_DIR "@LLVM_CONFIG_LIBRARY_DIRS@")
Chris Bienemanbe765192016-09-01 16:43:39 +000075
John Brawn8a3ec2a2015-09-30 10:34:06 +000076set(LLVM_DEFINITIONS "@LLVM_DEFINITIONS@")
NAKAMURA Takumi43d63842014-02-09 16:35:51 +000077set(LLVM_CMAKE_DIR "@LLVM_CONFIG_CMAKE_DIR@")
Chris Bieneman40a65062016-06-22 21:01:19 +000078set(LLVM_BINARY_DIR "@LLVM_CONFIG_BINARY_DIR@")
Dan Liew39828132014-07-22 17:48:51 +000079set(LLVM_TOOLS_BINARY_DIR "@LLVM_CONFIG_TOOLS_BINARY_DIR@")
Chris Bienemand0e1c2a2016-06-09 17:22:02 +000080set(LLVM_TOOLS_INSTALL_DIR "@LLVM_TOOLS_INSTALL_DIR@")
Adam Nemetdc7bd1b2017-12-01 01:44:26 +000081set(LLVM_HAVE_OPT_VIEWER_MODULES @LLVM_HAVE_OPT_VIEWER_MODULES@)
Oscar Fuentesdbe99ba2011-04-10 16:17:49 +000082
NAKAMURA Takumi363e85a2014-02-09 16:36:28 +000083if(NOT TARGET LLVMSupport)
Michael Gottesman31e93632016-09-09 19:45:34 +000084 set(LLVM_EXPORTED_TARGETS "@LLVM_CONFIG_EXPORTS@")
NAKAMURA Takumi363e85a2014-02-09 16:36:28 +000085 include("@LLVM_CONFIG_EXPORTS_FILE@")
Michael Gottesman31e93632016-09-09 19:45:34 +000086 @llvm_config_include_buildtree_only_exports@
NAKAMURA Takumi363e85a2014-02-09 16:36:28 +000087endif()
88
Chris Bieneman57265892017-07-28 15:33:35 +000089# By creating intrinsics_gen here, subprojects that depend on LLVM's
90# tablegen-generated headers can always depend on this target whether building
91# in-tree with LLVM or not.
92if(NOT TARGET intrinsics_gen)
93 add_custom_target(intrinsics_gen)
94endif()
95
Chris Bieneman84ad1f82017-02-09 18:14:12 +000096set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On)
NAKAMURA Takumi43d63842014-02-09 16:35:51 +000097include(${LLVM_CMAKE_DIR}/LLVM-Config.cmake)