From 4d7de8d4666afeacc33bb16e24a8347173dcf2e2 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 2 Aug 2022 13:20:06 +0200 Subject: [PATCH] sys: Make sure nativefiledialogs doesn't use macOS 11 frameworks Fixes #597 --- lib/libimhex/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libimhex/CMakeLists.txt b/lib/libimhex/CMakeLists.txt index e2277fd15..801d1687b 100644 --- a/lib/libimhex/CMakeLists.txt +++ b/lib/libimhex/CMakeLists.txt @@ -13,6 +13,7 @@ set_target_properties(microtar PROPERTIES POSITION_INDEPENDENT_CODE ON) set(NFD_PORTAL ON CACHE BOOL "Use Portals for Linux file dialogs" FORCE) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../external/nativefiledialog ${CMAKE_CURRENT_BINARY_DIR}/external/nativefiledialog EXCLUDE_FROM_ALL) set_target_properties(nfd PROPERTIES POSITION_INDEPENDENT_CODE ON) +target_compile_definitions(nfd PUBLIC NFD_MACOS_ALLOWEDCONTENTTYPES=0) set(LIBROMFS_RESOURCE_LOCATION ${IMHEX_BASE_FOLDER}/resources/romfs) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../external/libromfs ${CMAKE_CURRENT_BINARY_DIR}/external/libromfs EXCLUDE_FROM_ALL)