blob: 0d2f97c1c039e07c67e524002f4f22ea230176fd [file] [log] [blame]
Oscar Fuentese1fadb12010-08-11 00:51:32 +00001# This file provides information and services to the final user.
2
Oscar Fuentes3447b4f2011-04-10 16:17:49 +00003set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@) #remove this?
Oscar Fuentesd538e242011-02-03 20:57:36 +00004
Oscar Fuentes6252e982010-08-09 03:26:43 +00005set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
6
NAKAMURA Takumi0f300472011-02-21 03:20:57 +00007set_property( GLOBAL PROPERTY LLVM_LIBS "@llvm_libs@")
Oscar Fuentes6252e982010-08-09 03:26:43 +00008
Oscar Fuentes38e0b462010-09-29 15:28:55 +00009set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
10
Oscar Fuentes6252e982010-08-09 03:26:43 +000011set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
12
Oscar Fuentes7d83dc02011-02-23 11:28:40 +000013set(TARGET_TRIPLE "@TARGET_TRIPLE@")
14
Oscar Fuentes6252e982010-08-09 03:26:43 +000015set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@)
16
Oscar Fuentes8150d8d2010-08-09 03:47:11 +000017set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
Oscar Fuentes6252e982010-08-09 03:26:43 +000018
Oscar Fuentese1fadb12010-08-11 00:51:32 +000019set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
20
Oscar Fuentesd538e242011-02-03 20:57:36 +000021set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
22
Oscar Fuentesd538e242011-02-03 20:57:36 +000023set(HAVE_LIBDL @HAVE_LIBDL@)
Oscar Fuentesf63ea6f2011-04-03 16:12:38 +000024set(HAVE_LIBPTHREAD @HAVE_LIBPTHREAD@)
25set(LLVM_ON_UNIX @LLVM_ON_UNIX@)
26set(LLVM_ON_WIN32 @LLVM_ON_WIN32@)
Oscar Fuentesd538e242011-02-03 20:57:36 +000027
Oscar Fuentes3447b4f2011-04-10 16:17:49 +000028set(LLVM_INSTALL_PREFIX @LLVM_INSTALL_PREFIX@)
29set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include)
30set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib)
31set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS")
32
Oscar Fuentese1fadb12010-08-11 00:51:32 +000033# We try to include using the current setting of CMAKE_MODULE_PATH,
34# which suppossedly was filled by the user with the directory where
35# this file was installed:
Oscar Fuentese7510c22011-04-05 17:02:48 +000036include( LLVM-Config OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED )
Oscar Fuentese1fadb12010-08-11 00:51:32 +000037
38# If failed, we assume that this is an un-installed build:
39if( NOT LLVMCONFIG_INCLUDED )
Oscar Fuentes6252e982010-08-09 03:26:43 +000040 set(CMAKE_MODULE_PATH
41 ${CMAKE_MODULE_PATH}
42 "@LLVM_SOURCE_DIR@/cmake/modules")
Oscar Fuentese7510c22011-04-05 17:02:48 +000043 include( LLVM-Config )
Oscar Fuentes6252e982010-08-09 03:26:43 +000044endif()
45