Skip to content
Permalink
Browse files

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
  • Loading branch information
timcu authored and SmallJoker committed Mar 26, 2018
1 parent 2f280cc commit 9802e59724ac05e7304f9fbd4c93204f7bd00a3d
Showing with 2 additions and 2 deletions.
  1. +2 −2 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)

0 comments on commit 9802e59

Please sign in to comment.