blob: 4efc7455066c82ab30a66deee855291cb9b4a6b4 [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
Oscar Fuentes38e0b462010-09-29 15:28:55 +00009set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
10
Oscar Fuentes6252e982010-08-09 03:26:43 +000011set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
12
13set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@)
14
Oscar Fuentes8150d8d2010-08-09 03:47:11 +000015set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
Oscar Fuentes6252e982010-08-09 03:26:43 +000016
Oscar Fuentese1fadb12010-08-11 00:51:32 +000017set(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:
22include( LLVMConfig OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED )
23
24# If failed, we assume that this is an un-installed build:
25if( NOT LLVMCONFIG_INCLUDED )
Oscar Fuentes6252e982010-08-09 03:26:43 +000026 set(CMAKE_MODULE_PATH
27 ${CMAKE_MODULE_PATH}
28 "@LLVM_SOURCE_DIR@/cmake/modules")
Oscar Fuentese1fadb12010-08-11 00:51:32 +000029 include( LLVMConfig )
Oscar Fuentes6252e982010-08-09 03:26:43 +000030endif()
31