[Loader] Enable 'MZ_FORCE_FETCH_LIBS'

I think CMake is trying to link zlib from the host system? This prevents it from doing that.

This also causes a fun new CMake warning when configuring for whatever reason.
This commit is contained in:
acaruso-xx 2024-04-10 16:16:42 -04:00
parent b6dac6893b
commit 3fb52e3fe4

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(