CMake: Don't use X11 on Apple.

This commit is contained in:
Donny Lawrence 2019-06-27 08:34:34 -05:00 committed by Sam Edwards
parent 10abe6e216
commit 7a3ea071a4

View File

@ -491,7 +491,10 @@ package_status(CG "Nvidia Cg Shading Language" "${cg_apis}")
#
# X11 (and GLX)
if(NOT APPLE)
find_package(X11 QUIET)
endif()
if(NOT X11_Xkb_FOUND OR NOT X11_Xutil_FOUND)
# Panda implicitly requires these supplementary X11 libs; if we can't find