Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

[cmake] Patch QuaZip for windows fix (#60)

crueterbe59b4f15f3b
diff --git a/.ci/patch/0002-quazip-fetchcontent.patch b/.ci/patch/0002-quazip-fetchcontent.patch
new file mode 100644
index 0000000000..3554b7dbb6
--- /dev/null
+++ b/.ci/patch/0002-quazip-fetchcontent.patch
@@ -0,0 +1,13 @@
+diff --git a/cmake/clone-repo.cmake b/cmake/clone-repo.cmake
+index 2ffb4b2..77974dc 100644
+--- a/cmake/clone-repo.cmake
++++ b/cmake/clone-repo.cmake
+@@ -26,7 +26,7 @@ macro(clone_repo name url)
+ FetchContent_GetProperties(${name} POPULATED ${name_lower}_POPULATED)
+
+ if(NOT ${name_lower}_POPULATED)
+- FetchContent_Populate(${name})
++ FetchContent_MakeAvailable(${name})
+ endif()
+
+ set(${name_upper}_SOURCE_DIR ${${name_lower}_SOURCE_DIR})
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt
index 88f25aa42e..cf96b6e876 100644
--- a/src/yuzu/CMakeLists.txt
+++ b/src/yuzu/CMakeLists.txt
@@ -505,6 +505,7 @@ CPMAddPackage(
URI "gh:stachenov/[email protected]"
PATCHES
${CMAKE_SOURCE_DIR}/.ci/patch/0001-quazip-strict.patch
+ ${CMAKE_SOURCE_DIR}/.ci/patch/0002-quazip-fetchcontent.patch
)
if (NOT MSVC)