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.
This commit is contained in:
Marius Schamschula 2013-06-19 14:43:00 -04:00 committed by Brad King
parent ee59089803
commit 488d9682cc
1 changed files with 2 additions and 0 deletions

View File

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