blob: 9621454f411912a512f0fcd58a18151eac118ea3 [file] [log] [blame]
Oscar Fuentese1fadb12010-08-11 00:51:32 +00001# This file provides information and services to the final user.
2
Oscar Fuentes6252e982010-08-09 03:26:43 +00003set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
4
5set(llvm_libs @llvm_libs@)
6
7set(llvm_lib_targets @llvm_lib_targets@)
8
9set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
10
11set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@)
12
Oscar Fuentes8150d8d2010-08-09 03:47:11 +000013set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
Oscar Fuentes6252e982010-08-09 03:26:43 +000014
Oscar Fuentese1fadb12010-08-11 00:51:32 +000015set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
16
17# We try to include using the current setting of CMAKE_MODULE_PATH,
18# which suppossedly was filled by the user with the directory where
19# this file was installed:
20include( LLVMConfig OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED )
21
22# If failed, we assume that this is an un-installed build:
23if( NOT LLVMCONFIG_INCLUDED )
Oscar Fuentes6252e982010-08-09 03:26:43 +000024 set(CMAKE_MODULE_PATH
25 ${CMAKE_MODULE_PATH}
26 "@LLVM_SOURCE_DIR@/cmake/modules")
Oscar Fuentese1fadb12010-08-11 00:51:32 +000027 include( LLVMConfig )
Oscar Fuentes6252e982010-08-09 03:26:43 +000028endif()
29