Update CMakeLists.txt

This commit is contained in:
Brecht Sanders 2022-11-02 11:04:53 +01:00 committed by GitHub
parent b2beebcf98
commit 02420144d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,18 +51,15 @@ IF(WITH_LIBZIP)
SET(ANYZIP_LIBRARIES ${LIBZIP_LIBRARIES})
SET(ANYZIP_DEF USE_LIBZIP)
ELSE()
SET(USE_MINIZIP)
ADD_DEFINITIONS(-DUSE_MINIZIP)
SET(ANYZIP_DEF)
IF(WITH_MINIZIP_NG)
FIND_PACKAGE(minizip REQUIRED)
SET(USE_MINIZIP_NG)
ADD_DEFINITIONS(-DUSE_MINIZIP_NG)
SET(ANYZIP_LIBRARIES MINIZIP::minizip)
SET(ANYZIP_DEF USE_LIBZIP;USE_MINIZIP_NG)
ELSE()
FIND_PACKAGE(Minizip REQUIRED)
FIND_PACKAGE(minizip REQUIRED)
SET(ANYZIP_INCLUDE_DIRS ${MINIZIP_INCLUDE_DIRS})
SET(ANYZIP_LIBRARIES ${MINIZIP_LIBRARIES})
SET(ANYZIP_DEF USE_MINIZIP)
ENDIF()
ENDIF()
# dependancy: expat