Fixed some bugs.
[llvm/zpu.git] / cmake / modules / LLVM.cmake
blob4efc7455066c82ab30a66deee855291cb9b4a6b4
1 # This file provides information and services to the final user.
3 set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
5 set(llvm_libs @llvm_libs@)
7 set(llvm_lib_targets @llvm_lib_targets@)
9 set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
11 set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
13 set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@)
15 set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
17 set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
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 )
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()