blob: 0dc5058f639514a656771976b5f1717dac27df94 [file] [log] [blame]
Oscar Fuentese1fadb12010-08-11 00:51:32 +00001# This file provides information and services to the final user.
2
Oscar Fuentesd538e242011-02-03 20:57:36 +00003set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@)
4
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
13set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@)
14
Oscar Fuentes8150d8d2010-08-09 03:47:11 +000015set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
Oscar Fuentes6252e982010-08-09 03:26:43 +000016
Oscar Fuentese1fadb12010-08-11 00:51:32 +000017set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
18
Oscar Fuentesd538e242011-02-03 20:57:36 +000019set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
20
21set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS)
22
23set(HAVE_LIBDL @HAVE_LIBDL@)
24set(HAVE_LIBPTHREAD @HAVE_LIBPTHREAD)
25
Oscar Fuentese1fadb12010-08-11 00:51:32 +000026# We try to include using the current setting of CMAKE_MODULE_PATH,
27# which suppossedly was filled by the user with the directory where
28# this file was installed:
29include( LLVMConfig OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED )
30
31# If failed, we assume that this is an un-installed build:
32if( NOT LLVMCONFIG_INCLUDED )
Oscar Fuentes6252e982010-08-09 03:26:43 +000033 set(CMAKE_MODULE_PATH
34 ${CMAKE_MODULE_PATH}
35 "@LLVM_SOURCE_DIR@/cmake/modules")
Oscar Fuentese1fadb12010-08-11 00:51:32 +000036 include( LLVMConfig )
Oscar Fuentes6252e982010-08-09 03:26:43 +000037endif()
38