CMake: Fix build with libzip 1.7.1

This commit is contained in:
Vicki Pfau 2020-08-07 23:17:03 -07:00
parent a87fe56ec6
commit e131831238
1 changed files with 2 additions and 0 deletions

View File

@ -636,6 +636,8 @@ endif()
if(USE_LIBZIP)
if(TARGET libzip::zip)
list(APPEND DEPENDENCY_LIB libzip::zip)
elseif(TARGET zip)
list(APPEND DEPENDENCY_LIB zip)
else()
include_directories(AFTER ${LIBZIP_INCLUDE_DIRS})
link_directories(${LIBZIP_LIBRARY_DIRS})