blob: f0b8c14ec34dfdf4d729033833e7e5f32eac584c [file] [log] [blame]
Oscar Fuentese1fadb12010-08-11 00:51:32 +00001# This file provides information and services to the final user.
2
Dylan Noblesmithfde82372012-02-13 18:48:10 +00003set(LLVM_VERSION_MAJOR @LLVM_VERSION_MAJOR@)
4set(LLVM_VERSION_MINOR @LLVM_VERSION_MINOR@)
Oscar Fuentesff688a12011-04-11 14:52:39 +00005set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@)
Oscar Fuentesd538e242011-02-03 20:57:36 +00006
Oscar Fuentes6252e982010-08-09 03:26:43 +00007set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
8
NAKAMURA Takumi0f300472011-02-21 03:20:57 +00009set_property( GLOBAL PROPERTY LLVM_LIBS "@llvm_libs@")
Oscar Fuentes6252e982010-08-09 03:26:43 +000010
Oscar Fuentes38e0b462010-09-29 15:28:55 +000011set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
12
Oscar Fuentes6252e982010-08-09 03:26:43 +000013set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
14
Oscar Fuentesc2475e82011-04-13 15:25:31 +000015set(LLVM_TARGETS_WITH_JIT @LLVM_TARGETS_WITH_JIT@)
16
Chandler Carruth2e1513d2011-07-29 23:52:01 +000017@all_llvm_lib_deps@
18
Oscar Fuentes7d83dc02011-02-23 11:28:40 +000019set(TARGET_TRIPLE "@TARGET_TRIPLE@")
20
Oscar Fuentes6252e982010-08-09 03:26:43 +000021set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@)
22
Oscar Fuentes8150d8d2010-08-09 03:47:11 +000023set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
Oscar Fuentes6252e982010-08-09 03:26:43 +000024
Alexey Samsonovee03c942013-04-23 08:28:39 +000025set(LLVM_ENABLE_ZLIB @LLVM_ENABLE_ZLIB@)
26
Oscar Fuentese1fadb12010-08-11 00:51:32 +000027set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
28
Oscar Fuentesd538e242011-02-03 20:57:36 +000029set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
30
Oscar Fuentesd538e242011-02-03 20:57:36 +000031set(HAVE_LIBDL @HAVE_LIBDL@)
Oscar Fuentesf63ea6f2011-04-03 16:12:38 +000032set(HAVE_LIBPTHREAD @HAVE_LIBPTHREAD@)
Alexey Samsonovee03c942013-04-23 08:28:39 +000033set(HAVE_LIBZ @HAVE_LIBZ@)
Oscar Fuentesf63ea6f2011-04-03 16:12:38 +000034set(LLVM_ON_UNIX @LLVM_ON_UNIX@)
35set(LLVM_ON_WIN32 @LLVM_ON_WIN32@)
Oscar Fuentesd538e242011-02-03 20:57:36 +000036
NAKAMURA Takumi845b4c22012-07-07 03:12:28 +000037set(LLVM_INSTALL_PREFIX "@LLVM_INSTALL_PREFIX@")
Oscar Fuentes3447b4f2011-04-10 16:17:49 +000038set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include)
39set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib)
40set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS")
41
Oscar Fuentese1fadb12010-08-11 00:51:32 +000042# We try to include using the current setting of CMAKE_MODULE_PATH,
43# which suppossedly was filled by the user with the directory where
44# this file was installed:
Oscar Fuentese7510c22011-04-05 17:02:48 +000045include( LLVM-Config OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED )
Oscar Fuentese1fadb12010-08-11 00:51:32 +000046
47# If failed, we assume that this is an un-installed build:
48if( NOT LLVMCONFIG_INCLUDED )
Oscar Fuentes6252e982010-08-09 03:26:43 +000049 set(CMAKE_MODULE_PATH
50 ${CMAKE_MODULE_PATH}
51 "@LLVM_SOURCE_DIR@/cmake/modules")
Oscar Fuentese7510c22011-04-05 17:02:48 +000052 include( LLVM-Config )
Oscar Fuentes6252e982010-08-09 03:26:43 +000053endif()
54