From 9e155869a00ea94f4be6037f641b199897490a52 Mon Sep 17 00:00:00 2001 From: SRSaunders <82544213+SRSaunders@users.noreply.github.com> Date: Thu, 28 Mar 2024 01:08:58 -0400 Subject: [PATCH] macOS: Set CMAKE_FIND_FRAMEWORK to prefer dylibs over macOS frameworks and xcframeworks --- neo/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index 83e8fab7..64917d11 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -314,6 +314,12 @@ if(STANDALONE) set(DOOM_CLASSIC OFF) endif() +# SRS - on Apple set find_package() to prefer dylibs over macOS frameworks and xcframeworks +# - required for cmake >= 3.29 and MoltenVK, also prefers openal-soft over Apple OpenAL +if(APPLE) + set(CMAKE_FIND_FRAMEWORK LAST) +endif() + # SRS - set libjpeg as first include path to prioritize bundled format_message() fix if (USE_SYSTEM_LIBJPEG) find_package(JPEG)