fix quazip

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2025-07-14 16:18:25 -04:00
parent 8b779b64f8
commit 1e51e82d59
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6

View file

@ -336,23 +336,27 @@ if (ARCHITECTURE_arm64 AND NOT TARGET sse2neon)
target_include_directories(sse2neon INTERFACE sse2neon) target_include_directories(sse2neon INTERFACE sse2neon)
endif() endif()
include(CPM)
set(CPM_SOURCE_CACHE ${CMAKE_SOURCE_DIR}/.cache/cpm)
set(CPM_USE_LOCAL_PACKAGES ON)
# QuaZip # QuaZip
if (ENABLE_QT) if (ENABLE_QT)
set(QUAZIP_QT_MAJOR_VERSION 6) set(QUAZIP_QT_MAJOR_VERSION 6)
set(QUAZIP_BZIP2 OFF) set(QUAZIP_BZIP2 OFF)
include(CPM)
set(CPM_SOURCE_CACHE ${CMAKE_SOURCE_DIR}/.cache/cpm)
set(CPM_USE_LOCAL_PACKAGES ON)
CPMAddPackage( CPMAddPackage(
URI "gh:stachenov/quazip@1.5" NAME QuaZip-Qt6
VERSION 1.3
GIT_REPOSITORY "https://github.com/stachenov/quazip.git"
GIT_TAG v1.5
PATCHES PATCHES
${CMAKE_SOURCE_DIR}/.ci/patch/0001-quazip-strict.patch ${CMAKE_SOURCE_DIR}/.ci/patch/0001-quazip-strict.patch
${CMAKE_SOURCE_DIR}/.ci/patch/0002-quazip-fetchcontent.patch ${CMAKE_SOURCE_DIR}/.ci/patch/0002-quazip-fetchcontent.patch
) )
if (NOT MSVC) if (NOT MSVC AND NOT "QuaZip-Qt6" IN_LIST CPM_PACKAGES)
message(STATUS "QUAZIP DIR: ${CPM_PACKAGES}")
target_compile_options(QuaZip PRIVATE target_compile_options(QuaZip PRIVATE
-Wno-error=shadow -Wno-error=shadow
-Wno-error=missing-declarations -Wno-error=missing-declarations