From 2de65c6921895df4d4e92af6d1f19763b8619a40 Mon Sep 17 00:00:00 2001 From: David Konsumer Date: Sat, 19 Oct 2024 02:48:02 -0700 Subject: [PATCH] fix retro build --- tools/cmake/Findlibretrocommon.cmake | 8 ++------ tools/cmake/Findnull0.cmake | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tools/cmake/Findlibretrocommon.cmake b/tools/cmake/Findlibretrocommon.cmake index 907d1d5..fd98090 100644 --- a/tools/cmake/Findlibretrocommon.cmake +++ b/tools/cmake/Findlibretrocommon.cmake @@ -1,9 +1,5 @@ # libretro-common -include(FetchContent) -FetchContent_Declare( - libretrocommon - GIT_REPOSITORY https://github.com/libretro/libretro-common.git - GIT_TAG b274f73 - GIT_SHALLOW 1 +FetchContent_Declare(libretrocommon + URL https://github.com/libretro/libretro-common/archive/refs/heads/master.zip ) FetchContent_MakeAvailable(libretrocommon) \ No newline at end of file diff --git a/tools/cmake/Findnull0.cmake b/tools/cmake/Findnull0.cmake index 46b8c01..4c1b66a 100644 --- a/tools/cmake/Findnull0.cmake +++ b/tools/cmake/Findnull0.cmake @@ -124,6 +124,7 @@ if(HOST_TYPE) if (NULL0_HOST_TYPE_RETRO) add_definitions(-DPNTR_APP_LIBRETRO -DPNTR_PIXELFORMAT_ARGB) + find_package(libretrocommon) endif() set(PHYSFS_ARCHIVE_7Z CACHE INTERNAL FALSE)