1# This file provides information and services to the final user. 2 3set(LLVM_VERSION_MAJOR @LLVM_VERSION_MAJOR@) 4set(LLVM_VERSION_MINOR @LLVM_VERSION_MINOR@) 5set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@) 6 7set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@) 8 9set_property( GLOBAL PROPERTY LLVM_LIBS "@llvm_libs@") 10 11set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@) 12 13set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@) 14 15set(LLVM_TARGETS_WITH_JIT @LLVM_TARGETS_WITH_JIT@) 16 17@all_llvm_lib_deps@ 18 19set(TARGET_TRIPLE "@TARGET_TRIPLE@") 20 21set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@) 22 23set(LLVM_ENABLE_THREADS @LLVM_ENABLE_THREADS@) 24 25set(LLVM_NATIVE_ARCH @LLVM_NATIVE_ARCH@) 26 27set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@) 28 29set(HAVE_LIBDL @HAVE_LIBDL@) 30set(HAVE_LIBPTHREAD @HAVE_LIBPTHREAD@) 31set(LLVM_ON_UNIX @LLVM_ON_UNIX@) 32set(LLVM_ON_WIN32 @LLVM_ON_WIN32@) 33 34set(LLVM_INSTALL_PREFIX "@LLVM_INSTALL_PREFIX@") 35set(LLVM_INCLUDE_DIRS ${LLVM_INSTALL_PREFIX}/include) 36set(LLVM_LIBRARY_DIRS ${LLVM_INSTALL_PREFIX}/lib) 37set(LLVM_DEFINITIONS "-D__STDC_LIMIT_MACROS" "-D__STDC_CONSTANT_MACROS") 38 39# We try to include using the current setting of CMAKE_MODULE_PATH, 40# which suppossedly was filled by the user with the directory where 41# this file was installed: 42include( LLVM-Config OPTIONAL RESULT_VARIABLE LLVMCONFIG_INCLUDED ) 43 44# If failed, we assume that this is an un-installed build: 45if( NOT LLVMCONFIG_INCLUDED ) 46 set(CMAKE_MODULE_PATH 47 ${CMAKE_MODULE_PATH} 48 "@LLVM_SOURCE_DIR@/cmake/modules") 49 include( LLVM-Config ) 50endif() 51 52