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