mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
macOS: don't require X11 libraries during compilation (#7149)
The xxf86vm needs to be removed from Apple builds to avoid CMake Error XXF86VM_LIBRARY is NOTFOUND
This commit is contained in:
parent
1d7fbd035d
commit
5624cf750f
1 changed files with 5 additions and 3 deletions
|
@ -325,10 +325,12 @@ else()
|
||||||
endif(HAVE_LIBRT)
|
endif(HAVE_LIBRT)
|
||||||
endif(APPLE)
|
endif(APPLE)
|
||||||
|
|
||||||
|
if(NOT APPLE)
|
||||||
# This way Xxf86vm is found on OpenBSD too
|
# This way Xxf86vm is found on OpenBSD too
|
||||||
find_library(XXF86VM_LIBRARY Xxf86vm)
|
find_library(XXF86VM_LIBRARY Xxf86vm)
|
||||||
mark_as_advanced(XXF86VM_LIBRARY)
|
mark_as_advanced(XXF86VM_LIBRARY)
|
||||||
set(CLIENT_PLATFORM_LIBS ${CLIENT_PLATFORM_LIBS} ${XXF86VM_LIBRARY})
|
set(CLIENT_PLATFORM_LIBS ${CLIENT_PLATFORM_LIBS} ${XXF86VM_LIBRARY})
|
||||||
|
endif(NOT APPLE)
|
||||||
|
|
||||||
# Prefer local iconv if installed
|
# Prefer local iconv if installed
|
||||||
find_library(ICONV_LIBRARY iconv)
|
find_library(ICONV_LIBRARY iconv)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue