File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ zip tools installed on the system.
15
15
16
16
This module defines the following imported targets:
17
17
18
- * `libzip::libzip ` - The package library, if found.
18
+ * `libzip::zip ` - The package library, if found.
19
19
20
20
## Result variables
21
21
@@ -39,7 +39,7 @@ Basic usage:
39
39
```cmake
40
40
# CMakeLists.txt
41
41
find_package(libzip)
42
- target_link_libraries(example PRIVATE libzip::libzip )
42
+ target_link_libraries(example PRIVATE libzip::zip )
43
43
```
44
44
#]=============================================================================]
45
45
@@ -161,11 +161,11 @@ endif()
161
161
set (libzip_INCLUDE_DIRS ${libzip_INCLUDE_DIR} )
162
162
set (libzip_LIBRARIES ${libzip_LIBRARY} )
163
163
164
- if (NOT TARGET libzip::libzip )
165
- add_library (libzip::libzip UNKNOWN IMPORTED )
164
+ if (NOT TARGET libzip::zip )
165
+ add_library (libzip::zip UNKNOWN IMPORTED )
166
166
167
167
set_target_properties (
168
- libzip::libzip
168
+ libzip::zip
169
169
PROPERTIES
170
170
IMPORTED_LOCATION "${libzip_LIBRARY} "
171
171
INTERFACE_INCLUDE_DIRECTORIES "${libzip_INCLUDE_DIRS} "
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ if(libzip_VERSION VERSION_EQUAL 1.3.1 OR libzip_VERSION VERSION_EQUAL 1.7.0)
91
91
)
92
92
endif ()
93
93
94
- target_link_libraries (php_ext_zip PRIVATE libzip::libzip )
94
+ target_link_libraries (php_ext_zip PRIVATE libzip::zip )
95
95
96
96
# Note: ZIP_STATIC needs to be defined when using static libzip on Windows only
97
97
# since version 1.0 to 1.3.2
@@ -110,9 +110,9 @@ endif()
110
110
# TODO: When downloading and building libzip from source additional deps are
111
111
# required.
112
112
113
- if (TARGET libzip::libzip )
113
+ if (TARGET libzip::zip )
114
114
cmake_push_check_state (RESET )
115
- set (CMAKE_REQUIRED_LIBRARIES libzip::libzip )
115
+ set (CMAKE_REQUIRED_LIBRARIES libzip::zip )
116
116
117
117
check_symbol_exists (zip_file_set_mtime zip.h HAVE_SET_MTIME )
118
118
You can’t perform that action at this time.
0 commit comments