When loading from a constant, fold inttoptr if the integer type and the resulting...
[oota-llvm.git] / cmake / modules / LLVM.cmake
1 # This file provides information and services to the final user.
2
3 set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@)
4
5 set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
6
7 set(llvm_libs @llvm_libs@)
8
9 set(llvm_lib_targets @llvm_lib_targets@)
10
11 set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
12
13 set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
14
15 set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@)
16
17 set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
18
19 set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
20
21 set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
22
23 set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS)
24
25 set(HAVE_LIBDL @HAVE_LIBDL@)
26 set(HAVE_LIBPTHREAD @HAVE_LIBPTHREAD)
27
28 # We try to include using the current setting of CMAKE_MODULE_PATH,
29 # which suppossedly was filled by the user with the directory where
30 # this file was installed:
31 include( LLVMConfig OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED )
32
33 # If failed, we assume that this is an un-installed build:
34 if( NOT LLVMCONFIG_INCLUDED )
35   set(CMAKE_MODULE_PATH
36     ${CMAKE_MODULE_PATH}
37     "@LLVM_SOURCE_DIR@/cmake/modules")
38   include( LLVMConfig )
39 endif()
40