2010-08-11 00:51:32 +00:00
|
|
|
# This file provides information and services to the final user.
|
|
|
|
|
2011-04-11 14:52:39 +00:00
|
|
|
set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@)
|
2011-02-03 20:57:36 +00:00
|
|
|
|
2010-08-09 03:26:43 +00:00
|
|
|
set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
|
|
|
|
|
2011-02-21 03:20:57 +00:00
|
|
|
set_property( GLOBAL PROPERTY LLVM_LIBS "@llvm_libs@")
|
2010-08-09 03:26:43 +00:00
|
|
|
|
2010-09-29 15:28:55 +00:00
|
|
|
set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
|
|
|
|
|
2010-08-09 03:26:43 +00:00
|
|
|
set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
|
|
|
|
|
2011-04-13 15:25:31 +00:00
|
|
|
set(LLVM_TARGETS_WITH_JIT @LLVM_TARGETS_WITH_JIT@)
|
|
|
|
|
2011-07-29 23:52:01 +00:00
|
|
|
@all_llvm_lib_deps@
|
|
|
|
|
2011-02-23 11:28:40 +00:00
|
|
|
set(TARGET_TRIPLE "@TARGET_TRIPLE@")
|
|
|
|
|
2010-08-09 03:26:43 +00:00
|
|
|
set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@)
|
|
|
|
|
2010-08-09 03:47:11 +00:00
|
|
|
set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@)
|
2010-08-09 03:26:43 +00:00
|
|
|
|
2010-08-11 00:51:32 +00:00
|
|
|
set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@)
|
|
|
|
|
2011-02-03 20:57:36 +00:00
|
|
|
set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
|
|
|
|
|
|
|
|
set(HAVE_LIBDL @HAVE_LIBDL@)
|
2011-04-03 16:12:38 +00:00
|
|
|
set(HAVE_LIBPTHREAD @HAVE_LIBPTHREAD@)
|
|
|
|
set(LLVM_ON_UNIX @LLVM_ON_UNIX@)
|
|
|
|
set(LLVM_ON_WIN32 @LLVM_ON_WIN32@)
|
2011-02-03 20:57:36 +00:00
|
|
|
|
2011-04-10 16:17:49 +00:00
|
|
|
set(LLVM_INSTALL_PREFIX @LLVM_INSTALL_PREFIX@)
|
|
|
|
set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include)
|
|
|
|
set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib)
|
|
|
|
set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS")
|
|
|
|
|
2010-08-11 00:51:32 +00:00
|
|
|
# We try to include using the current setting of CMAKE_MODULE_PATH,
|
|
|
|
# which suppossedly was filled by the user with the directory where
|
|
|
|
# this file was installed:
|
2011-04-05 17:02:48 +00:00
|
|
|
include( LLVM-Config OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED )
|
2010-08-11 00:51:32 +00:00
|
|
|
|
|
|
|
# If failed, we assume that this is an un-installed build:
|
|
|
|
if( NOT LLVMCONFIG_INCLUDED )
|
2010-08-09 03:26:43 +00:00
|
|
|
set(CMAKE_MODULE_PATH
|
|
|
|
${CMAKE_MODULE_PATH}
|
|
|
|
"@LLVM_SOURCE_DIR@/cmake/modules")
|
2011-04-05 17:02:48 +00:00
|
|
|
include( LLVM-Config )
|
2010-08-09 03:26:43 +00:00
|
|
|
endif()
|
|
|
|
|