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