Browse Source

CMake: Don't use X11 on Apple.

Donny Lawrence 6 years ago
parent
commit
7a3ea071a4
1 changed files with 4 additions and 1 deletions
  1. 4 1
      dtool/Package.cmake

+ 4 - 1
dtool/Package.cmake

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