build: Make ImHex buildable for MacOS arm64 (#1414)

This commit is contained in:
iTrooz
2023-11-11 14:42:35 +01:00
committed by WerWolv
parent 30ce4b6e3c
commit 7405219fb8
6 changed files with 270 additions and 5 deletions

View File

@@ -24,6 +24,12 @@ if(CMAKE_GENERATOR)
return()
endif()
# IMHEX PATCH BEGIN
# The function defined above doesn't keep in mind that if we are cross-compiling to MacOS, APPLE must be 1,
# so we force it here (where else would this script be run anyway ? This seems to be MacOS-specific code)
SET(APPLE 1)
# IMHEX PATCHE END
get_filename_component(BUNDLE_PATH "${BUNDLE_PATH}" ABSOLUTE)
message(STATUS "Fixing up application bundle: ${BUNDLE_PATH}")