summaryrefslogtreecommitdiff
path: root/Modules/FindX11.cmake
diff options
context:
space:
mode:
authorMarius Schamschula <mschamschula@gmail.com>2013-06-19 14:43:00 -0400
committerBrad King <brad.king@kitware.com>2013-06-20 08:47:12 -0400
commit488d9682cc0974713315cae60a8dae793caefc6a (patch)
tree1c49e61764348346620fdafa3b11dc93b10eca57 /Modules/FindX11.cmake
parentee59089803c9d61710f24cbe70a2a819c6b9f771 (diff)
downloadcmake-488d9682cc0974713315cae60a8dae793caefc6a.tar.gz
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.
Diffstat (limited to 'Modules/FindX11.cmake')
-rw-r--r--Modules/FindX11.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindX11.cmake b/Modules/FindX11.cmake
index 3cd3cefeb7..131d979941 100644
--- a/Modules/FindX11.cmake
+++ b/Modules/FindX11.cmake
@@ -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})