aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD Tim Cummings <tim@triptera.com.au>2018-03-27 01:43:59 +1000
committerSmallJoker <SmallJoker@users.noreply.github.com>2018-03-26 17:43:59 +0200
commit9802e59724ac05e7304f9fbd4c93204f7bd00a3d (patch)
tree08ca13d0144c29b0f351ab23eb9a2b623ace47c2
parent2f280cc6724cd9dd0bf0bbe7a0d07bf888efce27 (diff)
downloadminetest-9802e59724ac05e7304f9fbd4c93204f7bd00a3d.tar.gz
minetest-9802e59724ac05e7304f9fbd4c93204f7bd00a3d.tar.bz2
minetest-9802e59724ac05e7304f9fbd4c93204f7bd00a3d.zip
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
-rw-r--r--src/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 8c7f6b56e..1b3d10ef5 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -323,12 +323,12 @@ else()
endif(HAVE_LIBRT)
endif(APPLE)
- if(NOT HAIKU)
+ if(NOT HAIKU AND NOT APPLE)
# This way Xxf86vm is found on OpenBSD too
find_library(XXF86VM_LIBRARY Xxf86vm)
mark_as_advanced(XXF86VM_LIBRARY)
set(CLIENT_PLATFORM_LIBS ${CLIENT_PLATFORM_LIBS} ${XXF86VM_LIBRARY})
- endif(NOT HAIKU)
+ endif(NOT HAIKU AND NOT APPLE)
# Prefer local iconv if installed
find_library(ICONV_LIBRARY iconv)