Browse Source
fix quazip
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/67/head
crueter
8 months ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
1 changed files with
10 additions and
6 deletions
-
externals/CMakeLists.txt
|
|
|
@ -336,23 +336,27 @@ if (ARCHITECTURE_arm64 AND NOT TARGET sse2neon) |
|
|
|
target_include_directories(sse2neon INTERFACE sse2neon) |
|
|
|
endif() |
|
|
|
|
|
|
|
include(CPM) |
|
|
|
set(CPM_SOURCE_CACHE ${CMAKE_SOURCE_DIR}/.cache/cpm) |
|
|
|
set(CPM_USE_LOCAL_PACKAGES ON) |
|
|
|
|
|
|
|
# QuaZip |
|
|
|
if (ENABLE_QT) |
|
|
|
set(QUAZIP_QT_MAJOR_VERSION 6) |
|
|
|
set(QUAZIP_BZIP2 OFF) |
|
|
|
|
|
|
|
include(CPM) |
|
|
|
set(CPM_SOURCE_CACHE ${CMAKE_SOURCE_DIR}/.cache/cpm) |
|
|
|
set(CPM_USE_LOCAL_PACKAGES ON) |
|
|
|
|
|
|
|
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 |
|
|
|
${CMAKE_SOURCE_DIR}/.ci/patch/0001-quazip-strict.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 |
|
|
|
-Wno-error=shadow |
|
|
|
-Wno-error=missing-declarations |
|
|
|
|