aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcrueter <crueter@eden-emu.dev>2025-07-16 23:17:34 +0200
committercrueter <crueter@eden-emu.dev>2025-07-16 23:17:34 +0200
commit108daeeb397fa23ab02ccef93460bd6bc68e4ba9 (patch)
tree04e8a9c16b77ae0a49723b4e90cd21b4c8d4b75b /src
parenta538126eb7a0ce1e3457922a49ecc2406b8d30b1 (diff)
[cmake] Fix QuaZip once and for all (#71)
(and core5compat) Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/71
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/CMakeLists.txt6
-rw-r--r--src/yuzu/externals/CMakeLists.txt23
2 files changed, 13 insertions, 16 deletions
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt
index bab6a6c4f5..e0733fbe92 100644
--- a/src/yuzu/CMakeLists.txt
+++ b/src/yuzu/CMakeLists.txt
@@ -462,8 +462,8 @@ if (WIN32 AND NOT YUZU_USE_BUNDLED_QT AND QT_VERSION VERSION_GREATER_EQUAL 6)
endif()
if (YUZU_USE_BUNDLED_QT)
- include(CopyYuzuQt6Deps)
- copy_yuzu_Qt6_deps(yuzu)
+ include(CopyYuzuQt6Deps)
+ copy_yuzu_Qt6_deps(yuzu)
endif()
if (ENABLE_SDL2)
@@ -496,6 +496,6 @@ endif()
# Extra deps
add_subdirectory(externals)
-target_link_libraries(yuzu PRIVATE QuaZip::QuaZip)
+target_link_libraries(yuzu PRIVATE QuaZip::QuaZip Qt6::Core5Compat)
create_target_directory_groups(yuzu)
diff --git a/src/yuzu/externals/CMakeLists.txt b/src/yuzu/externals/CMakeLists.txt
index ac17308e09..bd63f4e23b 100644
--- a/src/yuzu/externals/CMakeLists.txt
+++ b/src/yuzu/externals/CMakeLists.txt
@@ -5,9 +5,6 @@ set(BUILD_TESTING OFF)
set(BUILD_SHARED_LIBS OFF)
# QuaZip
-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)
@@ -18,14 +15,14 @@ CPMAddPackage(
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
-)
+ ${CMAKE_SOURCE_DIR}/.patch/quazip/0001-strict.patch
+ ${CMAKE_SOURCE_DIR}/.patch/quazip/0002-oldstyle.patch
+ ${CMAKE_SOURCE_DIR}/.patch/quazip/0003-predecls.patch
+ ${CMAKE_SOURCE_DIR}/.patch/quazip/0004-qt6-only.patch
-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
- )
-endif()
+ # thanks to 0004-qt6-only.patch, this isn't needed,
+ # but we keep it since the patch is "technically" optional
+ OPTIONS
+ "QUAZIP_QT_MAJOR_VERSION 6"
+ "QUAZIP_BZIP2 OFF"
+)