Subversion Repositories QNX 8.QNX8 LLVM/Clang compiler suite

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14 pmbaty 1
# This file allows users to call find_package(LLD) and pick up our targets.
2
 
3
# Compute the installation prefix from this LLVMConfig.cmake file location.
4
get_filename_component(LLD_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
5
get_filename_component(LLD_INSTALL_PREFIX "${LLD_INSTALL_PREFIX}" PATH)
6
get_filename_component(LLD_INSTALL_PREFIX "${LLD_INSTALL_PREFIX}" PATH)
7
get_filename_component(LLD_INSTALL_PREFIX "${LLD_INSTALL_PREFIX}" PATH)
8
 
9
set(LLVM_VERSION 16.0.6)
10
find_package(LLVM ${LLVM_VERSION} EXACT REQUIRED CONFIG
11
             HINTS "${LLD_INSTALL_PREFIX}/lib/cmake/llvm")
12
 
13
set(LLD_EXPORTED_TARGETS "lldCommon;lld;lldCOFF;lldELF;lldMachO;lldMinGW;lldWasm")
14
set(LLD_CMAKE_DIR "${LLD_INSTALL_PREFIX}/lib/cmake/lld")
15
set(LLD_INCLUDE_DIRS "${LLD_INSTALL_PREFIX}/include")
16
 
17
# Provide all our library targets to users.
18
include("${LLD_CMAKE_DIR}/LLDTargets.cmake")