diff options
author | D Tim Cummings <tim@triptera.com.au> | 2018-03-27 01:43:59 +1000 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-06-03 17:32:00 +0200 |
commit | 5624cf750f0c9de872dfff51eefd86575fa9c764 (patch) | |
tree | 27bf715e834c772120f03fc055982f7ccf3e9ea6 /src | |
parent | 1d7fbd035df7df2a9000dbd3607a6eef1235641b (diff) | |
download | minetest-5624cf750f0c9de872dfff51eefd86575fa9c764.tar.gz minetest-5624cf750f0c9de872dfff51eefd86575fa9c764.tar.bz2 minetest-5624cf750f0c9de872dfff51eefd86575fa9c764.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
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b1650f376..6663b3c4c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -325,10 +325,12 @@ else() endif(HAVE_LIBRT) endif(APPLE) + if(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}) + find_library(XXF86VM_LIBRARY Xxf86vm) + mark_as_advanced(XXF86VM_LIBRARY) + set(CLIENT_PLATFORM_LIBS ${CLIENT_PLATFORM_LIBS} ${XXF86VM_LIBRARY}) + endif(NOT APPLE) # Prefer local iconv if installed find_library(ICONV_LIBRARY iconv) |