Oscar Fuentes | e1fadb1 | 2010-08-11 00:51:32 +0000 | [diff] [blame] | 1 | # This file provides information and services to the final user. |
| 2 | |
Oscar Fuentes | 6252e98 | 2010-08-09 03:26:43 +0000 | [diff] [blame] | 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 | |
Oscar Fuentes | 8150d8d | 2010-08-09 03:47:11 +0000 | [diff] [blame] | 13 | set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@) |
Oscar Fuentes | 6252e98 | 2010-08-09 03:26:43 +0000 | [diff] [blame] | 14 | |
Oscar Fuentes | e1fadb1 | 2010-08-11 00:51:32 +0000 | [diff] [blame] | 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 ) |
Oscar Fuentes | 6252e98 | 2010-08-09 03:26:43 +0000 | [diff] [blame] | 24 | set(CMAKE_MODULE_PATH |
| 25 | ${CMAKE_MODULE_PATH} |
| 26 | "@LLVM_SOURCE_DIR@/cmake/modules") |
Oscar Fuentes | e1fadb1 | 2010-08-11 00:51:32 +0000 | [diff] [blame] | 27 | include( LLVMConfig ) |
Oscar Fuentes | 6252e98 | 2010-08-09 03:26:43 +0000 | [diff] [blame] | 28 | endif() |
| 29 | |