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.
1515
1616This module defines the following imported targets:
1717
18- * `libzip::libzip ` - The package library, if found.
18+ * `libzip::zip ` - The package library, if found.
1919
2020## Result variables
2121
@@ -39,7 +39,7 @@ Basic usage:
3939```cmake
4040# CMakeLists.txt
4141find_package(libzip)
42- target_link_libraries(example PRIVATE libzip::libzip )
42+ target_link_libraries(example PRIVATE libzip::zip )
4343```
4444#]=============================================================================]
4545
@@ -161,11 +161,11 @@ endif()
161161set (libzip_INCLUDE_DIRS ${libzip_INCLUDE_DIR} )
162162set (libzip_LIBRARIES ${libzip_LIBRARY} )
163163
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 )
166166
167167 set_target_properties (
168- libzip::libzip
168+ libzip::zip
169169 PROPERTIES
170170 IMPORTED_LOCATION "${libzip_LIBRARY} "
171171 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)
9191 )
9292endif ()
9393
94- target_link_libraries (php_ext_zip PRIVATE libzip::libzip )
94+ target_link_libraries (php_ext_zip PRIVATE libzip::zip )
9595
9696# Note: ZIP_STATIC needs to be defined when using static libzip on Windows only
9797# since version 1.0 to 1.3.2
@@ -110,9 +110,9 @@ endif()
110110# TODO: When downloading and building libzip from source additional deps are
111111# required.
112112
113- if (TARGET libzip::libzip )
113+ if (TARGET libzip::zip )
114114 cmake_push_check_state(RESET)
115- set (CMAKE_REQUIRED_LIBRARIES libzip::libzip )
115+ set (CMAKE_REQUIRED_LIBRARIES libzip::zip )
116116
117117 check_symbol_exists(zip_file_set_mtime zip.h HAVE_SET_MTIME)
118118
You can’t perform that action at this time.
0 commit comments