Quellcode durchsuchen

FindX11: Search in /opt/X11 for OS X 10.8 (#14232)

As of Mac OS X 10.8, X11 is no longer installed under /usr/X11, but
under /opt/X11.
Marius Schamschula vor 12 Jahren
Ursprung
Commit
488d9682cc
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      Modules/FindX11.cmake

+ 2 - 0
Modules/FindX11.cmake

@@ -68,6 +68,7 @@ if (UNIX)
     /usr/openwin/include
     /usr/openwin/include
     /usr/openwin/share/include
     /usr/openwin/share/include
     /opt/graphics/OpenGL/include
     /opt/graphics/OpenGL/include
+    /opt/X11/include
   )
   )
 
 
   set(X11_LIB_SEARCH_PATH
   set(X11_LIB_SEARCH_PATH
@@ -75,6 +76,7 @@ if (UNIX)
     /usr/X11R6/lib
     /usr/X11R6/lib
     /usr/X11R7/lib
     /usr/X11R7/lib
     /usr/openwin/lib
     /usr/openwin/lib
+    /opt/X11/lib
   )
   )
 
 
   find_path(X11_X11_INCLUDE_PATH X11/X.h                             ${X11_INC_SEARCH_PATH})
   find_path(X11_X11_INCLUDE_PATH X11/X.h                             ${X11_INC_SEARCH_PATH})