extra portability adjustments

This commit is contained in:
lizzie
2026-08-30 06:56:15 +00:00
parent 65471f4661
commit 11af553756
6 changed files with 41 additions and 28 deletions
+13
View File
@@ -411,3 +411,16 @@ if (APPLE)
set(MOLTENVK_LIBRARY "${moltenvk_SOURCE_DIR}/MoltenVK/dylib/macOS/libMoltenVK.dylib" CACHE STRING "" FORCE)
endif()
endif()
# We are NOT adding this to cpmfile.json
# In BSD world, it is often the case that X11
# will be under /usr/X11R{5,6,7}/include/...
# ...
# FreeBSD was able to see with hindsight this was a bad idea.
# OpenBSD, OmniOS and NetBSD by default, aren't illuminated yet by this notion.
#
# Reliance on X11 Headers being available without explicitly
# linking or mentioning X11 is something to note.
if (NOT (WIN32 OR APPLE OR ANDROID OR HAIKU OR PS4))
find_package(X11 REQUIRED)
endif()