Merge pull request from acaruso-xx/main

[Loader] Enable 'MZ_FORCE_FETCH_LIBS'
This commit is contained in:
dankmeme01 2024-04-10 22:44:46 +02:00 committed by GitHub
commit 6ea595a780
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,12 @@ else()
set(PROJECT_VERSION_SUFFIX "")
endif()
# I think CMake is trying to link zlib from the host system?
# This prevents it from doing that.
if (CMAKE_CROSSCOMPILING)
set(MZ_FORCE_FETCH_LIBS ON)
endif()
# https://stackoverflow.com/a/63924044/9124836
# https://stackoverflow.com/a/72396471
execute_process(