CMake: corrections on LLVM.cmake external services.
[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_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
10
11 set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@)
12
13 set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
14
15 set(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:
20 include( LLVMConfig OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED )
21
22 # If failed, we assume that this is an un-installed build:
23 if( NOT LLVMCONFIG_INCLUDED )
24   set(CMAKE_MODULE_PATH
25     ${CMAKE_MODULE_PATH}
26     "@LLVM_SOURCE_DIR@/cmake/modules")
27   include( LLVMConfig )
28 endif()
29