Skip to content

Commit

Permalink
macOS: don't require X11 libraries during compilation (#7149)
Browse files Browse the repository at this point in the history
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 9802e59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Expand Up @@ -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)
Expand Down

0 comments on commit 9802e59

Please sign in to comment.