mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 02:32:18 +00:00
macOS: Set CMAKE_FIND_FRAMEWORK to prefer dylibs over macOS frameworks and xcframeworks
This commit is contained in:
parent
997b7b5b99
commit
9e155869a0
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue