Skip to content

Commit

Permalink
CMake: Fix build with libzip 1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift committed Aug 8, 2020
1 parent a87fe56 commit e131831
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit e131831

Please sign in to comment.