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 clang-tblgen clangBasic clangAPINotes clangLex clangParse clangAST clangDynamicASTMatchers clangASTMatchers clangCrossTU clangSema clangCodeGen clangAnalysis clangAnalysisFlowSensitive clangAnalysisFlowSensitiveModels clangEdit clangExtractAPI clangRewrite clangARCMigrate clangDriver clangSerialization clangRewriteFrontend clangFrontend clangFrontendTool clangToolingCore clangToolingInclusions clangToolingInclusionsStdlib clangToolingRefactoring clangToolingASTDiff clangToolingSyntax clangDependencyScanning clangTransformer clangTooling clangDirectoryWatcher clangIndex clangIndexSerialization clangStaticAnalyzerCore clangStaticAnalyzerCheckers clangStaticAnalyzerFrontend clangFormat clangInterpreter clangSupport diagtool clang clang-format clangHandleCXX clangHandleLLVM clang-linker-wrapper clang-offload-packager clang-offload-bundler clang-scan-deps clang-repl clang-rename clang-refactor clang-cpp clang-check clang-extdef-mapping libclang amdgpu-arch nvptx-arch) |
||
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 clang-tblgen |
||
54 | add_executable(clang-tblgen IMPORTED) |
||
55 | |||
56 | # Create imported target clangBasic |
||
57 | add_library(clangBasic STATIC IMPORTED) |
||
58 | |||
59 | set_target_properties(clangBasic PROPERTIES |
||
60 | INTERFACE_LINK_LIBRARIES "LLVMSupport;LLVMTargetParser" |
||
61 | ) |
||
62 | |||
63 | # Create imported target clangAPINotes |
||
64 | add_library(clangAPINotes STATIC IMPORTED) |
||
65 | |||
66 | set_target_properties(clangAPINotes PROPERTIES |
||
67 | INTERFACE_LINK_LIBRARIES "clangBasic;LLVMSupport" |
||
68 | ) |
||
69 | |||
70 | # Create imported target clangLex |
||
71 | add_library(clangLex STATIC IMPORTED) |
||
72 | |||
73 | set_target_properties(clangLex PROPERTIES |
||
74 | INTERFACE_LINK_LIBRARIES "clangBasic;LLVMSupport;LLVMTargetParser" |
||
75 | ) |
||
76 | |||
77 | # Create imported target clangParse |
||
78 | add_library(clangParse STATIC IMPORTED) |
||
79 | |||
80 | set_target_properties(clangParse PROPERTIES |
||
81 | INTERFACE_LINK_LIBRARIES "clangAST;clangBasic;clangLex;clangSema;LLVMFrontendOpenMP;LLVMMC;LLVMMCParser;LLVMSupport;LLVMTargetParser" |
||
82 | ) |
||
83 | |||
84 | # Create imported target clangAST |
||
85 | add_library(clangAST STATIC IMPORTED) |
||
86 | |||
87 | set_target_properties(clangAST PROPERTIES |
||
88 | INTERFACE_LINK_LIBRARIES "clangBasic;clangLex;LLVMBinaryFormat;LLVMCore;LLVMFrontendOpenMP;LLVMSupport;LLVMTargetParser" |
||
89 | ) |
||
90 | |||
91 | # Create imported target clangDynamicASTMatchers |
||
92 | add_library(clangDynamicASTMatchers STATIC IMPORTED) |
||
93 | |||
94 | set_target_properties(clangDynamicASTMatchers PROPERTIES |
||
95 | INTERFACE_LINK_LIBRARIES "clangAST;clangASTMatchers;clangBasic;LLVMFrontendOpenMP;LLVMSupport" |
||
96 | ) |
||
97 | |||
98 | # Create imported target clangASTMatchers |
||
99 | add_library(clangASTMatchers STATIC IMPORTED) |
||
100 | |||
101 | set_target_properties(clangASTMatchers PROPERTIES |
||
102 | INTERFACE_LINK_LIBRARIES "clangAST;clangBasic;clangLex;LLVMFrontendOpenMP;LLVMSupport" |
||
103 | ) |
||
104 | |||
105 | # Create imported target clangCrossTU |
||
106 | add_library(clangCrossTU STATIC IMPORTED) |
||
107 | |||
108 | set_target_properties(clangCrossTU PROPERTIES |
||
109 | INTERFACE_LINK_LIBRARIES "clangAST;clangBasic;clangFrontend;clangIndex;LLVMSupport;LLVMTargetParser" |
||
110 | ) |
||
111 | |||
112 | # Create imported target clangSema |
||
113 | add_library(clangSema STATIC IMPORTED) |
||
114 | |||
115 | set_target_properties(clangSema PROPERTIES |
||
116 | INTERFACE_LINK_LIBRARIES "clangAST;clangAnalysis;clangBasic;clangEdit;clangLex;clangSupport;LLVMCore;LLVMFrontendHLSL;LLVMFrontendOpenMP;LLVMMC;LLVMSupport;LLVMTargetParser" |
||
117 | ) |
||
118 | |||
119 | # Create imported target clangCodeGen |
||
120 | add_library(clangCodeGen STATIC IMPORTED) |
||
121 | |||
122 | set_target_properties(clangCodeGen PROPERTIES |
||
123 | INTERFACE_LINK_LIBRARIES "clangAnalysis;clangAST;clangBasic;clangFrontend;clangLex;clangSerialization;LLVMAnalysis;LLVMBitReader;LLVMBitWriter;LLVMCore;LLVMCoroutines;LLVMCoverage;LLVMDemangle;LLVMExtensions;LLVMFrontendHLSL;LLVMFrontendOpenMP;LLVMipo;LLVMIRPrinter;LLVMIRReader;LLVMAggressiveInstCombine;LLVMInstCombine;LLVMInstrumentation;LLVMLTO;LLVMLinker;LLVMMC;LLVMObjCARCOpts;LLVMObject;LLVMPasses;LLVMProfileData;LLVMRemarks;LLVMScalarOpts;LLVMSupport;LLVMTarget;LLVMTargetParser;LLVMTransformUtils" |
||
124 | ) |
||
125 | |||
126 | # Create imported target clangAnalysis |
||
127 | add_library(clangAnalysis STATIC IMPORTED) |
||
128 | |||
129 | set_target_properties(clangAnalysis PROPERTIES |
||
130 | INTERFACE_LINK_LIBRARIES "clangAST;clangASTMatchers;clangBasic;clangLex;LLVMFrontendOpenMP;LLVMSupport" |
||
131 | ) |
||
132 | |||
133 | # Create imported target clangAnalysisFlowSensitive |
||
134 | add_library(clangAnalysisFlowSensitive STATIC IMPORTED) |
||
135 | |||
136 | set_target_properties(clangAnalysisFlowSensitive PROPERTIES |
||
137 | INTERFACE_LINK_LIBRARIES "clangAnalysis;clangAST;clangBasic;LLVMFrontendOpenMP;LLVMSupport" |
||
138 | ) |
||
139 | |||
140 | # Create imported target clangAnalysisFlowSensitiveModels |
||
141 | add_library(clangAnalysisFlowSensitiveModels STATIC IMPORTED) |
||
142 | |||
143 | set_target_properties(clangAnalysisFlowSensitiveModels PROPERTIES |
||
144 | INTERFACE_LINK_LIBRARIES "clangAnalysis;clangAnalysisFlowSensitive;clangAST;clangASTMatchers;clangBasic;LLVMFrontendOpenMP;LLVMSupport" |
||
145 | ) |
||
146 | |||
147 | # Create imported target clangEdit |
||
148 | add_library(clangEdit STATIC IMPORTED) |
||
149 | |||
150 | set_target_properties(clangEdit PROPERTIES |
||
151 | INTERFACE_LINK_LIBRARIES "clangAST;clangBasic;clangLex;LLVMSupport" |
||
152 | ) |
||
153 | |||
154 | # Create imported target clangExtractAPI |
||
155 | add_library(clangExtractAPI STATIC IMPORTED) |
||
156 | |||
157 | set_target_properties(clangExtractAPI PROPERTIES |
||
158 | INTERFACE_LINK_LIBRARIES "clangAST;clangBasic;clangFrontend;clangIndex;clangLex;LLVMSupport;LLVMTargetParser" |
||
159 | ) |
||
160 | |||
161 | # Create imported target clangRewrite |
||
162 | add_library(clangRewrite STATIC IMPORTED) |
||
163 | |||
164 | set_target_properties(clangRewrite PROPERTIES |
||
165 | INTERFACE_LINK_LIBRARIES "clangBasic;clangLex;LLVMSupport" |
||
166 | ) |
||
167 | |||
168 | # Create imported target clangARCMigrate |
||
169 | add_library(clangARCMigrate STATIC IMPORTED) |
||
170 | |||
171 | set_target_properties(clangARCMigrate PROPERTIES |
||
172 | INTERFACE_LINK_LIBRARIES "clangAST;clangAnalysis;clangBasic;clangEdit;clangFrontend;clangLex;clangRewrite;clangSema;clangSerialization;LLVMSupport;LLVMTargetParser" |
||
173 | ) |
||
174 | |||
175 | # Create imported target clangDriver |
||
176 | add_library(clangDriver STATIC IMPORTED) |
||
177 | |||
178 | set_target_properties(clangDriver PROPERTIES |
||
179 | INTERFACE_LINK_LIBRARIES "clangBasic;LLVMBinaryFormat;LLVMMC;LLVMObject;LLVMOption;LLVMProfileData;LLVMSupport;LLVMTargetParser;LLVMWindowsDriver" |
||
180 | ) |
||
181 | |||
182 | # Create imported target clangSerialization |
||
183 | add_library(clangSerialization STATIC IMPORTED) |
||
184 | |||
185 | set_target_properties(clangSerialization PROPERTIES |
||
186 | INTERFACE_LINK_LIBRARIES "clangAST;clangBasic;clangLex;clangSema;LLVMBitReader;LLVMBitstreamReader;LLVMSupport;LLVMTargetParser" |
||
187 | ) |
||
188 | |||
189 | # Create imported target clangRewriteFrontend |
||
190 | add_library(clangRewriteFrontend STATIC IMPORTED) |
||
191 | |||
192 | set_target_properties(clangRewriteFrontend PROPERTIES |
||
193 | INTERFACE_LINK_LIBRARIES "clangAST;clangBasic;clangEdit;clangFrontend;clangLex;clangRewrite;clangSerialization;LLVMSupport" |
||
194 | ) |
||
195 | |||
196 | # Create imported target clangFrontend |
||
197 | add_library(clangFrontend STATIC IMPORTED) |
||
198 | |||
199 | set_target_properties(clangFrontend PROPERTIES |
||
200 | INTERFACE_LINK_LIBRARIES "clangAST;clangBasic;clangDriver;clangEdit;clangLex;clangParse;clangSema;clangSerialization;LLVMBitReader;LLVMBitstreamReader;LLVMOption;LLVMProfileData;LLVMSupport;LLVMTargetParser" |
||
201 | ) |
||
202 | |||
203 | # Create imported target clangFrontendTool |
||
204 | add_library(clangFrontendTool STATIC IMPORTED) |
||
205 | |||
206 | set_target_properties(clangFrontendTool PROPERTIES |
||
207 | INTERFACE_LINK_LIBRARIES "clangBasic;clangCodeGen;clangDriver;clangExtractAPI;clangFrontend;clangRewriteFrontend;clangARCMigrate;clangStaticAnalyzerFrontend;LLVMOption;LLVMSupport" |
||
208 | ) |
||
209 | |||
210 | # Create imported target clangToolingCore |
||
211 | add_library(clangToolingCore STATIC IMPORTED) |
||
212 | |||
213 | set_target_properties(clangToolingCore PROPERTIES |
||
214 | INTERFACE_LINK_LIBRARIES "clangBasic;clangLex;clangRewrite;LLVMSupport" |
||
215 | ) |
||
216 | |||
217 | # Create imported target clangToolingInclusions |
||
218 | add_library(clangToolingInclusions STATIC IMPORTED) |
||
219 | |||
220 | set_target_properties(clangToolingInclusions PROPERTIES |
||
221 | INTERFACE_LINK_LIBRARIES "clangBasic;clangLex;clangRewrite;clangToolingCore;LLVMSupport" |
||
222 | ) |
||
223 | |||
224 | # Create imported target clangToolingInclusionsStdlib |
||
225 | add_library(clangToolingInclusionsStdlib STATIC IMPORTED) |
||
226 | |||
227 | set_target_properties(clangToolingInclusionsStdlib PROPERTIES |
||
228 | INTERFACE_LINK_LIBRARIES "clangAST;LLVMSupport" |
||
229 | ) |
||
230 | |||
231 | # Create imported target clangToolingRefactoring |
||
232 | add_library(clangToolingRefactoring STATIC IMPORTED) |
||
233 | |||
234 | set_target_properties(clangToolingRefactoring PROPERTIES |
||
235 | INTERFACE_LINK_LIBRARIES "clangAST;clangASTMatchers;clangBasic;clangFormat;clangIndex;clangLex;clangRewrite;clangToolingCore;LLVMSupport" |
||
236 | ) |
||
237 | |||
238 | # Create imported target clangToolingASTDiff |
||
239 | add_library(clangToolingASTDiff STATIC IMPORTED) |
||
240 | |||
241 | set_target_properties(clangToolingASTDiff PROPERTIES |
||
242 | INTERFACE_LINK_LIBRARIES "clangBasic;clangAST;clangLex;LLVMSupport" |
||
243 | ) |
||
244 | |||
245 | # Create imported target clangToolingSyntax |
||
246 | add_library(clangToolingSyntax STATIC IMPORTED) |
||
247 | |||
248 | set_target_properties(clangToolingSyntax PROPERTIES |
||
249 | INTERFACE_LINK_LIBRARIES "clangAST;clangBasic;clangFrontend;clangLex;clangToolingCore;LLVMSupport" |
||
250 | ) |
||
251 | |||
252 | # Create imported target clangDependencyScanning |
||
253 | add_library(clangDependencyScanning STATIC IMPORTED) |
||
254 | |||
255 | set_target_properties(clangDependencyScanning PROPERTIES |
||
256 | INTERFACE_LINK_LIBRARIES "clangAST;clangBasic;clangCodeGen;clangDriver;clangFrontend;clangFrontendTool;clangLex;clangParse;clangSerialization;clangTooling;LLVMAArch64CodeGen;LLVMAArch64AsmParser;LLVMAArch64Desc;LLVMAArch64Disassembler;LLVMAArch64Info;LLVMAArch64Utils;LLVMX86CodeGen;LLVMX86AsmParser;LLVMX86Desc;LLVMX86Disassembler;LLVMX86Info;LLVMCore;LLVMOption;LLVMSupport;LLVMTargetParser" |
||
257 | ) |
||
258 | |||
259 | # Create imported target clangTransformer |
||
260 | add_library(clangTransformer STATIC IMPORTED) |
||
261 | |||
262 | set_target_properties(clangTransformer PROPERTIES |
||
263 | INTERFACE_LINK_LIBRARIES "clangAST;clangASTMatchers;clangBasic;clangLex;clangToolingCore;clangToolingRefactoring;LLVMFrontendOpenMP;LLVMSupport" |
||
264 | ) |
||
265 | |||
266 | # Create imported target clangTooling |
||
267 | add_library(clangTooling STATIC IMPORTED) |
||
268 | |||
269 | set_target_properties(clangTooling PROPERTIES |
||
270 | INTERFACE_LINK_LIBRARIES "clangAST;clangASTMatchers;clangBasic;clangDriver;clangFormat;clangFrontend;clangLex;clangRewrite;clangSerialization;clangToolingCore;LLVMOption;LLVMFrontendOpenMP;LLVMSupport;LLVMTargetParser" |
||
271 | ) |
||
272 | |||
273 | # Create imported target clangDirectoryWatcher |
||
274 | add_library(clangDirectoryWatcher STATIC IMPORTED) |
||
275 | |||
276 | set_target_properties(clangDirectoryWatcher PROPERTIES |
||
277 | INTERFACE_LINK_LIBRARIES "LLVMSupport" |
||
278 | ) |
||
279 | |||
280 | # Create imported target clangIndex |
||
281 | add_library(clangIndex STATIC IMPORTED) |
||
282 | |||
283 | set_target_properties(clangIndex PROPERTIES |
||
284 | INTERFACE_LINK_LIBRARIES "clangAST;clangBasic;clangFormat;clangFrontend;clangLex;clangRewrite;clangSerialization;clangToolingCore;LLVMCore;LLVMSupport" |
||
285 | ) |
||
286 | |||
287 | # Create imported target clangIndexSerialization |
||
288 | add_library(clangIndexSerialization STATIC IMPORTED) |
||
289 | |||
290 | set_target_properties(clangIndexSerialization PROPERTIES |
||
291 | INTERFACE_LINK_LIBRARIES "clangBasic;LLVMSupport" |
||
292 | ) |
||
293 | |||
294 | # Create imported target clangStaticAnalyzerCore |
||
295 | add_library(clangStaticAnalyzerCore STATIC IMPORTED) |
||
296 | |||
297 | set_target_properties(clangStaticAnalyzerCore PROPERTIES |
||
298 | INTERFACE_LINK_LIBRARIES "clangAST;clangASTMatchers;clangAnalysis;clangBasic;clangCrossTU;clangFrontend;clangLex;clangRewrite;clangToolingCore;LLVMFrontendOpenMP;LLVMSupport" |
||
299 | ) |
||
300 | |||
301 | # Create imported target clangStaticAnalyzerCheckers |
||
302 | add_library(clangStaticAnalyzerCheckers STATIC IMPORTED) |
||
303 | |||
304 | set_target_properties(clangStaticAnalyzerCheckers PROPERTIES |
||
305 | INTERFACE_LINK_LIBRARIES "clangAST;clangASTMatchers;clangAnalysis;clangBasic;clangLex;clangStaticAnalyzerCore;LLVMFrontendOpenMP;LLVMSupport;LLVMTargetParser" |
||
306 | ) |
||
307 | |||
308 | # Create imported target clangStaticAnalyzerFrontend |
||
309 | add_library(clangStaticAnalyzerFrontend STATIC IMPORTED) |
||
310 | |||
311 | set_target_properties(clangStaticAnalyzerFrontend PROPERTIES |
||
312 | INTERFACE_LINK_LIBRARIES "clangAST;clangASTMatchers;clangAnalysis;clangBasic;clangCrossTU;clangFrontend;clangLex;clangStaticAnalyzerCheckers;clangStaticAnalyzerCore;LLVMSupport" |
||
313 | ) |
||
314 | |||
315 | # Create imported target clangFormat |
||
316 | add_library(clangFormat STATIC IMPORTED) |
||
317 | |||
318 | set_target_properties(clangFormat PROPERTIES |
||
319 | INTERFACE_LINK_LIBRARIES "clangBasic;clangLex;clangToolingCore;clangToolingInclusions;LLVMSupport" |
||
320 | ) |
||
321 | |||
322 | # Create imported target clangInterpreter |
||
323 | add_library(clangInterpreter STATIC IMPORTED) |
||
324 | |||
325 | set_target_properties(clangInterpreter PROPERTIES |
||
326 | INTERFACE_LINK_LIBRARIES "clangAST;clangAnalysis;clangBasic;clangDriver;clangEdit;clangFrontend;clangLex;clangParse;clangSema;clangSerialization;clangCodeGen;clangFrontendTool;LLVMCore;LLVMOption;LLVMOrcJIT;LLVMSupport;LLVMTarget;LLVMTargetParser;LLVMX86CodeGen;LLVMX86AsmParser;LLVMX86Desc;LLVMX86Disassembler;LLVMX86Info" |
||
327 | ) |
||
328 | |||
329 | # Create imported target clangSupport |
||
330 | add_library(clangSupport STATIC IMPORTED) |
||
331 | |||
332 | set_target_properties(clangSupport PROPERTIES |
||
333 | INTERFACE_LINK_LIBRARIES "LLVMSupport" |
||
334 | ) |
||
335 | |||
336 | # Create imported target diagtool |
||
337 | add_executable(diagtool IMPORTED) |
||
338 | |||
339 | # Create imported target clang |
||
340 | add_executable(clang IMPORTED) |
||
341 | set_property(TARGET clang PROPERTY ENABLE_EXPORTS 1) |
||
342 | |||
343 | # Create imported target clang-format |
||
344 | add_executable(clang-format IMPORTED) |
||
345 | |||
346 | # Create imported target clangHandleCXX |
||
347 | add_library(clangHandleCXX STATIC IMPORTED) |
||
348 | |||
349 | set_target_properties(clangHandleCXX PROPERTIES |
||
350 | INTERFACE_LINK_LIBRARIES "clangBasic;clangCodeGen;clangFrontend;clangLex;clangSerialization;clangTooling;LLVMAArch64CodeGen;LLVMAArch64AsmParser;LLVMAArch64Desc;LLVMAArch64Disassembler;LLVMAArch64Info;LLVMAArch64Utils;LLVMX86CodeGen;LLVMX86AsmParser;LLVMX86Desc;LLVMX86Disassembler;LLVMX86Info;LLVMSupport" |
||
351 | ) |
||
352 | |||
353 | # Create imported target clangHandleLLVM |
||
354 | add_library(clangHandleLLVM STATIC IMPORTED) |
||
355 | |||
356 | set_target_properties(clangHandleLLVM PROPERTIES |
||
357 | INTERFACE_LINK_LIBRARIES "LLVMAnalysis;LLVMCodeGen;LLVMCore;LLVMExecutionEngine;LLVMipo;LLVMIRPrinter;LLVMIRReader;LLVMMC;LLVMMCJIT;LLVMObject;LLVMPasses;LLVMRuntimeDyld;LLVMSelectionDAG;LLVMSupport;LLVMTarget;LLVMTargetParser;LLVMTransformUtils;LLVMX86CodeGen;LLVMX86AsmParser;LLVMX86Desc;LLVMX86Disassembler;LLVMX86Info" |
||
358 | ) |
||
359 | |||
360 | # Create imported target clang-linker-wrapper |
||
361 | add_executable(clang-linker-wrapper IMPORTED) |
||
362 | |||
363 | # Create imported target clang-offload-packager |
||
364 | add_executable(clang-offload-packager IMPORTED) |
||
365 | |||
366 | # Create imported target clang-offload-bundler |
||
367 | add_executable(clang-offload-bundler IMPORTED) |
||
368 | |||
369 | # Create imported target clang-scan-deps |
||
370 | add_executable(clang-scan-deps IMPORTED) |
||
371 | |||
372 | # Create imported target clang-repl |
||
373 | add_executable(clang-repl IMPORTED) |
||
374 | set_property(TARGET clang-repl PROPERTY ENABLE_EXPORTS 1) |
||
375 | |||
376 | # Create imported target clang-rename |
||
377 | add_executable(clang-rename IMPORTED) |
||
378 | |||
379 | # Create imported target clang-refactor |
||
380 | add_executable(clang-refactor IMPORTED) |
||
381 | |||
382 | # Create imported target clang-cpp |
||
383 | add_library(clang-cpp SHARED IMPORTED) |
||
384 | |||
385 | # Create imported target clang-check |
||
386 | add_executable(clang-check IMPORTED) |
||
387 | |||
388 | # Create imported target clang-extdef-mapping |
||
389 | add_executable(clang-extdef-mapping IMPORTED) |
||
390 | |||
391 | # Create imported target libclang |
||
392 | add_library(libclang SHARED IMPORTED) |
||
393 | |||
394 | # Create imported target amdgpu-arch |
||
395 | add_executable(amdgpu-arch IMPORTED) |
||
396 | |||
397 | # Create imported target nvptx-arch |
||
398 | add_executable(nvptx-arch IMPORTED) |
||
399 | |||
400 | if(CMAKE_VERSION VERSION_LESS 2.8.12) |
||
401 | message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.") |
||
402 | endif() |
||
403 | |||
404 | # Load information for each installed configuration. |
||
405 | get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) |
||
406 | file(GLOB CONFIG_FILES "${_DIR}/ClangTargets-*.cmake") |
||
407 | foreach(f ${CONFIG_FILES}) |
||
408 | include(${f}) |
||
409 | endforeach() |
||
410 | |||
411 | # Cleanup temporary variables. |
||
412 | set(_IMPORT_PREFIX) |
||
413 | |||
414 | # Loop over all imported files and verify that they actually exist |
||
415 | foreach(target ${_IMPORT_CHECK_TARGETS} ) |
||
416 | foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} ) |
||
417 | if(NOT EXISTS "${file}" ) |
||
418 | message(FATAL_ERROR "The imported target \"${target}\" references the file |
||
419 | \"${file}\" |
||
420 | but this file does not exist. Possible reasons include: |
||
421 | * The file was deleted, renamed, or moved to another location. |
||
422 | * An install or uninstall procedure did not complete successfully. |
||
423 | * The installation package was faulty and contained |
||
424 | \"${CMAKE_CURRENT_LIST_FILE}\" |
||
425 | but not all the files it references. |
||
426 | ") |
||
427 | endif() |
||
428 | endforeach() |
||
429 | unset(_IMPORT_CHECK_FILES_FOR_${target}) |
||
430 | endforeach() |
||
431 | unset(_IMPORT_CHECK_TARGETS) |
||
432 | |||
433 | # Make sure the targets which have been exported in some other |
||
434 | # export set exist. |
||
435 | unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets) |
||
436 | foreach(_target "LLVMSupport" "LLVMTargetParser" "LLVMFrontendOpenMP" "LLVMMC" "LLVMMCParser" "LLVMBinaryFormat" "LLVMCore" "LLVMFrontendHLSL" "LLVMAnalysis" "LLVMBitReader" "LLVMBitWriter" "LLVMCoroutines" "LLVMCoverage" "LLVMDemangle" "LLVMExtensions" "LLVMipo" "LLVMIRPrinter" "LLVMIRReader" "LLVMAggressiveInstCombine" "LLVMInstCombine" "LLVMInstrumentation" "LLVMLTO" "LLVMLinker" "LLVMObjCARCOpts" "LLVMObject" "LLVMPasses" "LLVMProfileData" "LLVMRemarks" "LLVMScalarOpts" "LLVMTarget" "LLVMTransformUtils" "LLVMOption" "LLVMWindowsDriver" "LLVMBitstreamReader" "LLVMAArch64CodeGen" "LLVMAArch64AsmParser" "LLVMAArch64Desc" "LLVMAArch64Disassembler" "LLVMAArch64Info" "LLVMAArch64Utils" "LLVMX86CodeGen" "LLVMX86AsmParser" "LLVMX86Desc" "LLVMX86Disassembler" "LLVMX86Info" "LLVMOrcJIT" "LLVMCodeGen" "LLVMExecutionEngine" "LLVMMCJIT" "LLVMRuntimeDyld" "LLVMSelectionDAG" ) |
||
437 | if(NOT TARGET "${_target}" ) |
||
438 | set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets "${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets} ${_target}") |
||
439 | endif() |
||
440 | endforeach() |
||
441 | |||
442 | if(DEFINED ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets) |
||
443 | if(CMAKE_FIND_PACKAGE_NAME) |
||
444 | set( ${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE) |
||
445 | 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}") |
||
446 | else() |
||
447 | message(FATAL_ERROR "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}") |
||
448 | endif() |
||
449 | endif() |
||
450 | unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets) |
||
451 | |||
452 | # Commands beyond this point should not need to know the version. |
||
453 | set(CMAKE_IMPORT_FILE_VERSION) |
||
454 | cmake_policy(POP) |