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
# Generated by CMake
2
 
3
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.6)
4
   message(FATAL_ERROR "CMake >= 2.6.0 required")
5
endif()
6
cmake_policy(PUSH)
7
cmake_policy(VERSION 2.6...3.20)
8
#----------------------------------------------------------------
9
# Generated CMake target import file.
10
#----------------------------------------------------------------
11
 
12
# Commands may need to know the format version.
13
set(CMAKE_IMPORT_FILE_VERSION 1)
14
 
15
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
16
set(_targetsDefined)
17
set(_targetsNotDefined)
18
set(_expectedTargets)
19
foreach(_expectedTarget lldCommon lld lldCOFF lldELF lldMachO lldMinGW lldWasm)
20
  list(APPEND _expectedTargets ${_expectedTarget})
21
  if(NOT TARGET ${_expectedTarget})
22
    list(APPEND _targetsNotDefined ${_expectedTarget})
23
  endif()
24
  if(TARGET ${_expectedTarget})
25
    list(APPEND _targetsDefined ${_expectedTarget})
26
  endif()
27
endforeach()
28
if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
29
  unset(_targetsDefined)
30
  unset(_targetsNotDefined)
31
  unset(_expectedTargets)
32
  set(CMAKE_IMPORT_FILE_VERSION)
33
  cmake_policy(POP)
34
  return()
35
endif()
36
if(NOT "${_targetsDefined}" STREQUAL "")
37
  message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
38
endif()
39
unset(_targetsDefined)
40
unset(_targetsNotDefined)
41
unset(_expectedTargets)
42
 
43
 
44
# Compute the installation prefix relative to this file.
45
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
46
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
47
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
48
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
49
if(_IMPORT_PREFIX STREQUAL "/")
50
  set(_IMPORT_PREFIX "")
51
endif()
52
 
53
# Create imported target lldCommon
54
add_library(lldCommon STATIC IMPORTED)
55
 
56
set_target_properties(lldCommon PROPERTIES
57
  INTERFACE_LINK_LIBRARIES "LLVMCodeGen;LLVMCore;LLVMDebugInfoDWARF;LLVMDemangle;LLVMMC;LLVMOption;LLVMSupport;LLVMTarget;LLVMTargetParser"
58
)
59
 
60
# Create imported target lld
61
add_executable(lld IMPORTED)
62
set_property(TARGET lld PROPERTY ENABLE_EXPORTS 1)
63
 
64
# Create imported target lldCOFF
65
add_library(lldCOFF STATIC IMPORTED)
66
 
67
set_target_properties(lldCOFF PROPERTIES
68
  INTERFACE_LINK_LIBRARIES "lldCommon;LLVMAArch64CodeGen;LLVMAArch64AsmParser;LLVMAArch64Desc;LLVMAArch64Disassembler;LLVMAArch64Info;LLVMAArch64Utils;LLVMX86CodeGen;LLVMX86AsmParser;LLVMX86Desc;LLVMX86Disassembler;LLVMX86Info;LLVMBinaryFormat;LLVMCore;LLVMDebugInfoCodeView;LLVMDebugInfoDWARF;LLVMDebugInfoMSF;LLVMDebugInfoPDB;LLVMDemangle;LLVMLibDriver;LLVMLTO;LLVMMC;LLVMObject;LLVMOption;LLVMPasses;LLVMSupport;LLVMTargetParser;LLVMWindowsDriver;LLVMWindowsManifest"
69
)
70
 
71
# Create imported target lldELF
72
add_library(lldELF STATIC IMPORTED)
73
 
74
set_target_properties(lldELF PROPERTIES
75
  INTERFACE_LINK_LIBRARIES "lldCommon;LLVMAArch64CodeGen;LLVMAArch64AsmParser;LLVMAArch64Desc;LLVMAArch64Disassembler;LLVMAArch64Info;LLVMAArch64Utils;LLVMX86CodeGen;LLVMX86AsmParser;LLVMX86Desc;LLVMX86Disassembler;LLVMX86Info;LLVMBinaryFormat;LLVMBitWriter;LLVMCore;LLVMDebugInfoDWARF;LLVMDemangle;LLVMLTO;LLVMMC;LLVMObject;LLVMOption;LLVMPasses;LLVMSupport;LLVMTargetParser"
76
)
77
 
78
# Create imported target lldMachO
79
add_library(lldMachO STATIC IMPORTED)
80
 
81
set_target_properties(lldMachO PROPERTIES
82
  INTERFACE_LINK_LIBRARIES "lldCommon;LLVMAArch64CodeGen;LLVMAArch64AsmParser;LLVMAArch64Desc;LLVMAArch64Disassembler;LLVMAArch64Info;LLVMAArch64Utils;LLVMX86CodeGen;LLVMX86AsmParser;LLVMX86Desc;LLVMX86Disassembler;LLVMX86Info;LLVMBinaryFormat;LLVMBitReader;LLVMBitWriter;LLVMCore;LLVMDebugInfoDWARF;LLVMDemangle;LLVMLTO;LLVMMC;LLVMObjCARCOpts;LLVMObject;LLVMOption;LLVMPasses;LLVMSupport;LLVMTargetParser;LLVMTextAPI"
83
)
84
 
85
# Create imported target lldMinGW
86
add_library(lldMinGW STATIC IMPORTED)
87
 
88
set_target_properties(lldMinGW PROPERTIES
89
  INTERFACE_LINK_LIBRARIES "lldCOFF;lldCommon;LLVMOption;LLVMSupport;LLVMTargetParser"
90
)
91
 
92
# Create imported target lldWasm
93
add_library(lldWasm STATIC IMPORTED)
94
 
95
set_target_properties(lldWasm PROPERTIES
96
  INTERFACE_LINK_LIBRARIES "lldCommon;LLVMAArch64CodeGen;LLVMAArch64AsmParser;LLVMAArch64Desc;LLVMAArch64Disassembler;LLVMAArch64Info;LLVMAArch64Utils;LLVMX86CodeGen;LLVMX86AsmParser;LLVMX86Desc;LLVMX86Disassembler;LLVMX86Info;LLVMBinaryFormat;LLVMCore;LLVMDemangle;LLVMLTO;LLVMMC;LLVMObject;LLVMOption;LLVMPasses;LLVMSupport;LLVMTargetParser"
97
)
98
 
99
if(CMAKE_VERSION VERSION_LESS 2.8.12)
100
  message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
101
endif()
102
 
103
# Load information for each installed configuration.
104
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
105
file(GLOB CONFIG_FILES "${_DIR}/LLDTargets-*.cmake")
106
foreach(f ${CONFIG_FILES})
107
  include(${f})
108
endforeach()
109
 
110
# Cleanup temporary variables.
111
set(_IMPORT_PREFIX)
112
 
113
# Loop over all imported files and verify that they actually exist
114
foreach(target ${_IMPORT_CHECK_TARGETS} )
115
  foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
116
    if(NOT EXISTS "${file}" )
117
      message(FATAL_ERROR "The imported target \"${target}\" references the file
118
   \"${file}\"
119
but this file does not exist.  Possible reasons include:
120
* The file was deleted, renamed, or moved to another location.
121
* An install or uninstall procedure did not complete successfully.
122
* The installation package was faulty and contained
123
   \"${CMAKE_CURRENT_LIST_FILE}\"
124
but not all the files it references.
125
")
126
    endif()
127
  endforeach()
128
  unset(_IMPORT_CHECK_FILES_FOR_${target})
129
endforeach()
130
unset(_IMPORT_CHECK_TARGETS)
131
 
132
# Make sure the targets which have been exported in some other
133
# export set exist.
134
unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
135
foreach(_target "LLVMCodeGen" "LLVMCore" "LLVMDebugInfoDWARF" "LLVMDemangle" "LLVMMC" "LLVMOption" "LLVMSupport" "LLVMTarget" "LLVMTargetParser" "LLVMAArch64CodeGen" "LLVMAArch64AsmParser" "LLVMAArch64Desc" "LLVMAArch64Disassembler" "LLVMAArch64Info" "LLVMAArch64Utils" "LLVMX86CodeGen" "LLVMX86AsmParser" "LLVMX86Desc" "LLVMX86Disassembler" "LLVMX86Info" "LLVMBinaryFormat" "LLVMDebugInfoCodeView" "LLVMDebugInfoMSF" "LLVMDebugInfoPDB" "LLVMLibDriver" "LLVMLTO" "LLVMObject" "LLVMPasses" "LLVMWindowsDriver" "LLVMWindowsManifest" "LLVMBitWriter" "LLVMBitReader" "LLVMObjCARCOpts" "LLVMTextAPI" )
136
  if(NOT TARGET "${_target}" )
137
    set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets "${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets} ${_target}")
138
  endif()
139
endforeach()
140
 
141
if(DEFINED ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
142
  if(CMAKE_FIND_PACKAGE_NAME)
143
    set( ${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
144
    set( ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}")
145
  else()
146
    message(FATAL_ERROR "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}")
147
  endif()
148
endif()
149
unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets)
150
 
151
# Commands beyond this point should not need to know the version.
152
set(CMAKE_IMPORT_FILE_VERSION)
153
cmake_policy(POP)