blob: e7001867984656434f8d1e75e7f8edb99d740765 [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
Pavel Labathd54c3472018-03-14 09:28:38 +000016set(LLVM_DYLIB_COMPONENTS @LLVM_DYLIB_COMPONENTS@)
17
Oscar Fuentesfb812672010-09-29 15:28:55 +000018set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
19
Oscar Fuentesa389c582010-08-09 03:26:43 +000020set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
21
Oscar Fuentese2a11472011-04-13 15:25:31 +000022set(LLVM_TARGETS_WITH_JIT @LLVM_TARGETS_WITH_JIT@)
23
Chandler Carruth68b23112011-07-29 23:52:01 +000024@all_llvm_lib_deps@
25
Oscar Fuentes2ece0b12011-02-23 11:28:40 +000026set(TARGET_TRIPLE "@TARGET_TRIPLE@")
27
NAKAMURA Takumic063c472015-04-01 11:46:15 +000028set(LLVM_ABI_BREAKING_CHECKS @LLVM_ABI_BREAKING_CHECKS@)
29
Dan Liew12902a02014-07-21 14:17:15 +000030set(LLVM_ENABLE_ASSERTIONS @LLVM_ENABLE_ASSERTIONS@)
31
Dan Liew066f50a2014-07-22 15:41:33 +000032set(LLVM_ENABLE_EH @LLVM_ENABLE_EH@)
33
34set(LLVM_ENABLE_RTTI @LLVM_ENABLE_RTTI@)
35
Chandler Carruthf11f1e42013-08-12 09:49:17 +000036set(LLVM_ENABLE_TERMINFO @LLVM_ENABLE_TERMINFO@)
Chandler Carruthcad7e5e2013-08-07 08:47:36 +000037
Oscar Fuentesa6c13372010-08-09 03:47:11 +000038set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
Oscar Fuentesa389c582010-08-09 03:26:43 +000039
Alexey Samsonov2fb337e2013-04-23 08:28:39 +000040set(LLVM_ENABLE_ZLIB @LLVM_ENABLE_ZLIB@)
41
Michal Gorny92061be2018-01-19 17:47:03 +000042set(LLVM_LIBXML2_ENABLED @LLVM_LIBXML2_ENABLED@)
43
Michal Gorny89b6f162017-01-02 18:19:35 +000044set(LLVM_ENABLE_DIA_SDK @LLVM_ENABLE_DIA_SDK@)
45
Oscar Fuentes945f64e2010-08-11 00:51:32 +000046set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
47
Oscar Fuentesf4202ba2011-02-03 20:57:36 +000048set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
49
John Brawnc5a47bb2016-07-01 14:22:52 +000050set(LLVM_BUILD_32_BITS @LLVM_BUILD_32_BITS@)
51
Eric Fiselier87c87f42017-02-10 01:59:20 +000052if (NOT "@LLVM_PTHREAD_LIB@" STREQUAL "")
53 set(LLVM_PTHREAD_LIB "@LLVM_PTHREAD_LIB@")
54endif()
55
John Brawn8a3ec2a2015-09-30 10:34:06 +000056set(LLVM_ENABLE_PLUGINS @LLVM_ENABLE_PLUGINS@)
John Brawn3546c2f2016-05-26 11:16:43 +000057set(LLVM_EXPORT_SYMBOLS_FOR_PLUGINS @LLVM_EXPORT_SYMBOLS_FOR_PLUGINS@)
John Brawn8a3ec2a2015-09-30 10:34:06 +000058set(LLVM_PLUGIN_EXT @LLVM_PLUGIN_EXT@)
59
Oscar Fuentes8b29cf52011-04-03 16:12:38 +000060set(LLVM_ON_UNIX @LLVM_ON_UNIX@)
61set(LLVM_ON_WIN32 @LLVM_ON_WIN32@)
Oscar Fuentesf4202ba2011-02-03 20:57:36 +000062
Chandler Carruthab8df0b2014-12-29 11:16:23 +000063set(LLVM_LIBDIR_SUFFIX @LLVM_LIBDIR_SUFFIX@)
64
Chris Bienemanbe765192016-09-01 16:43:39 +000065set(LLVM_INCLUDE_DIRS "@LLVM_CONFIG_INCLUDE_DIRS@")
66set(LLVM_LIBRARY_DIRS "@LLVM_CONFIG_LIBRARY_DIRS@")
67
68# These variables are duplicated, but they must match the LLVM variables of the
69# same name. The variables ending in "S" could some day become lists, and are
70# preserved for convention and compatibility.
Chris Bieneman5349efc2016-08-29 21:26:32 +000071set(LLVM_INCLUDE_DIR "@LLVM_CONFIG_INCLUDE_DIRS@")
Chris Bieneman1f4af492016-05-10 19:45:17 +000072set(LLVM_LIBRARY_DIR "@LLVM_CONFIG_LIBRARY_DIRS@")
Chris Bienemanbe765192016-09-01 16:43:39 +000073
John Brawn8a3ec2a2015-09-30 10:34:06 +000074set(LLVM_DEFINITIONS "@LLVM_DEFINITIONS@")
NAKAMURA Takumi43d63842014-02-09 16:35:51 +000075set(LLVM_CMAKE_DIR "@LLVM_CONFIG_CMAKE_DIR@")
Chris Bieneman40a65062016-06-22 21:01:19 +000076set(LLVM_BINARY_DIR "@LLVM_CONFIG_BINARY_DIR@")
Dan Liew39828132014-07-22 17:48:51 +000077set(LLVM_TOOLS_BINARY_DIR "@LLVM_CONFIG_TOOLS_BINARY_DIR@")
Chris Bienemand0e1c2a2016-06-09 17:22:02 +000078set(LLVM_TOOLS_INSTALL_DIR "@LLVM_TOOLS_INSTALL_DIR@")
Adam Nemetdc7bd1b2017-12-01 01:44:26 +000079set(LLVM_HAVE_OPT_VIEWER_MODULES @LLVM_HAVE_OPT_VIEWER_MODULES@)
Oscar Fuentesdbe99ba2011-04-10 16:17:49 +000080
NAKAMURA Takumi363e85a2014-02-09 16:36:28 +000081if(NOT TARGET LLVMSupport)
Michael Gottesman31e93632016-09-09 19:45:34 +000082 set(LLVM_EXPORTED_TARGETS "@LLVM_CONFIG_EXPORTS@")
NAKAMURA Takumi363e85a2014-02-09 16:36:28 +000083 include("@LLVM_CONFIG_EXPORTS_FILE@")
Michael Gottesman31e93632016-09-09 19:45:34 +000084 @llvm_config_include_buildtree_only_exports@
NAKAMURA Takumi363e85a2014-02-09 16:36:28 +000085endif()
86
Chris Bieneman57265892017-07-28 15:33:35 +000087# By creating intrinsics_gen here, subprojects that depend on LLVM's
88# tablegen-generated headers can always depend on this target whether building
89# in-tree with LLVM or not.
90if(NOT TARGET intrinsics_gen)
91 add_custom_target(intrinsics_gen)
92endif()
93
Chris Bieneman84ad1f82017-02-09 18:14:12 +000094set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On)
NAKAMURA Takumi43d63842014-02-09 16:35:51 +000095include(${LLVM_CMAKE_DIR}/LLVM-Config.cmake)