summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-05 12:15:42 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-05 12:15:42 (GMT)
commit8ac50c4aad81f3b2e5ac026ce3ac5cf6f9aca307 (patch)
treea9a9eb7d6a54c0a0d6feb8af623ae0139adc7bc4 /Modules
parent14ab03ff69ec4386a9fcde5e0ab829d01d69f950 (diff)
downloadCMake-8ac50c4aad81f3b2e5ac026ce3ac5cf6f9aca307.zip
CMake-8ac50c4aad81f3b2e5ac026ce3ac5cf6f9aca307.tar.gz
CMake-8ac50c4aad81f3b2e5ac026ce3ac5cf6f9aca307.tar.bz2
Try to fix FindX11
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindX11.cmake29
1 files changed, 29 insertions, 0 deletions
diff --git a/Modules/FindX11.cmake b/Modules/FindX11.cmake
index ec9048f..fc4d52c 100644
--- a/Modules/FindX11.cmake
+++ b/Modules/FindX11.cmake
@@ -24,6 +24,35 @@ IF (UNIX)
/opt/graphics/OpenGL/include
)
+ FIND_PATH(CMAKE_Xlib_INCLUDE_PATH X11/Xlib.h
+ /usr/include
+ /usr/local/include
+ /usr/openwin/include
+ /usr/openwin/share/include
+ /usr/X11R6/include
+ /usr/include/X11
+ /opt/graphics/OpenGL/include
+ )
+
+ FIND_PATH(CMAKE_Xutil_INCLUDE_PATH X11/Xutil.h
+ /usr/include
+ /usr/local/include
+ /usr/openwin/include
+ /usr/openwin/share/include
+ /usr/X11R6/include
+ /usr/include/X11
+ /opt/graphics/OpenGL/include
+ )
+
+ IF(CMAKE_X11_INCLUDE_PATH)
+ SET(CMAKE_X11_INCLUDES "${CMAKE_X11_INCLUDES};${CMAKE_X11_INCLUDE_PATH}")
+ ENDIF(CMAKE_X11_INCLUDE_PATH)
+ IF(CMAKE_Xlib_INCLUDE_PATH)
+ SET(CMAKE_X11_INCLUDES "${CMAKE_X11_INCLUDES};${CMAKE_Xlib_INCLUDE_PATH}")
+ ENDIF(CMAKE_Xlib_INCLUDE_PATH)
+ IF(CMAKE_Xutil_INCLUDE_PATH)
+ SET(CMAKE_X11_INCLUDES "${CMAKE_X11_INCLUDES};${CMAKE_Xutil_INCLUDE_PATH}")
+ ENDIF(CMAKE_Xutil_INCLUDE_PATH)
FIND_LIBRARY(CMAKE_X11_LIBDIR X11
/usr/lib