Recommit 116986 with capitalization typo fixed.
[oota-llvm.git] / cmake / modules / LLVM.cmake
1 # This file provides information and services to the final user.
2
3 set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
4
5 set(llvm_libs @llvm_libs@)
6
7 set(llvm_lib_targets @llvm_lib_targets@)
8
9 set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
10
11 set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
12
13 set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@)
14
15 set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
16
17 set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
18
19 # We try to include using the current setting of CMAKE_MODULE_PATH,
20 # which suppossedly was filled by the user with the directory where
21 # this file was installed:
22 include( LLVMConfig OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED )
23
24 # If failed, we assume that this is an un-installed build:
25 if( NOT LLVMCONFIG_INCLUDED )
26   set(CMAKE_MODULE_PATH
27     ${CMAKE_MODULE_PATH}
28     "@LLVM_SOURCE_DIR@/cmake/modules")
29   include( LLVMConfig )
30 endif()
31