ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/MSYS2/mingw32/lib/cmake/zstd/zstdTargets.cmake
Revision: 1166
Committed: Tue Oct 26 14:22:36 2021 UTC (4 years ago) by rossy
File size: 3616 byte(s)
Log Message:
Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File Contents

# Content
1 # Generated by CMake
2
3 if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
4 message(FATAL_ERROR "CMake >= 2.6.0 required")
5 endif()
6 cmake_policy(PUSH)
7 cmake_policy(VERSION 2.6...3.18)
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 zstd::libzstd_shared zstd::libzstd_static)
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 zstd::libzstd_shared
54 add_library(zstd::libzstd_shared SHARED IMPORTED)
55
56 set_target_properties(zstd::libzstd_shared PROPERTIES
57 INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
58 )
59
60 # Create imported target zstd::libzstd_static
61 add_library(zstd::libzstd_static STATIC IMPORTED)
62
63 set_target_properties(zstd::libzstd_static PROPERTIES
64 INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
65 )
66
67 # Load information for each installed configuration.
68 get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
69 file(GLOB CONFIG_FILES "${_DIR}/zstdTargets-*.cmake")
70 foreach(f ${CONFIG_FILES})
71 include(${f})
72 endforeach()
73
74 # Cleanup temporary variables.
75 set(_IMPORT_PREFIX)
76
77 # Loop over all imported files and verify that they actually exist
78 foreach(target ${_IMPORT_CHECK_TARGETS} )
79 foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
80 if(NOT EXISTS "${file}" )
81 message(FATAL_ERROR "The imported target \"${target}\" references the file
82 \"${file}\"
83 but this file does not exist. Possible reasons include:
84 * The file was deleted, renamed, or moved to another location.
85 * An install or uninstall procedure did not complete successfully.
86 * The installation package was faulty and contained
87 \"${CMAKE_CURRENT_LIST_FILE}\"
88 but not all the files it references.
89 ")
90 endif()
91 endforeach()
92 unset(_IMPORT_CHECK_FILES_FOR_${target})
93 endforeach()
94 unset(_IMPORT_CHECK_TARGETS)
95
96 # This file does not depend on other imported targets which have
97 # been exported from the same project but in a separate export set.
98
99 # Commands beyond this point should not need to know the version.
100 set(CMAKE_IMPORT_FILE_VERSION)
101 cmake_policy(POP)