summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-01-02 14:57:42 (GMT)
committerBrad King <brad.king@kitware.com>2003-01-02 14:57:42 (GMT)
commit204308132fc1567f40ee77072342078bcec97b67 (patch)
tree4fd97e839f14aa6918ddaf3e531b62d7bf54e297 /Modules
parente7fd8fb12ff4b64c01dc2ab4e0bd089c7c408322 (diff)
downloadCMake-204308132fc1567f40ee77072342078bcec97b67.zip
CMake-204308132fc1567f40ee77072342078bcec97b67.tar.gz
CMake-204308132fc1567f40ee77072342078bcec97b67.tar.bz2
BUG: Fixed ordering of X11 search.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindX11.cmake41
1 files changed, 10 insertions, 31 deletions
diff --git a/Modules/FindX11.cmake b/Modules/FindX11.cmake
index 04ccc99..fe6c7ec 100644
--- a/Modules/FindX11.cmake
+++ b/Modules/FindX11.cmake
@@ -9,50 +9,29 @@
IF (UNIX)
SET(CMAKE_HAS_X 0)
- FIND_PATH(CMAKE_X11_INCLUDE_PATH X11/X.h
- /usr/include
- /usr/local/include
- /usr/openwin/include
- /usr/openwin/share/include
+ SET(CMAKE_X11_INC_SEARCH_PATH
/usr/X11R6/include
- /usr/include/X11
- /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
+ /usr/include
)
- FIND_LIBRARY(CMAKE_X11_LIB X11
- /usr/lib
- /usr/local/lib
- /usr/openwin/lib
+ SET(CMAKE_X11_LIB_SEARCH_PATH
/usr/X11R6/lib
- )
-
- FIND_LIBRARY(CMAKE_Xext_LIB Xext
- /usr/lib
/usr/local/lib
/usr/openwin/lib
- /usr/X11R6/lib
+ /usr/lib
)
+ FIND_PATH(CMAKE_X11_INCLUDE_PATH X11/X.h ${CMAKE_X11_INC_SEARCH_PATH})
+ FIND_PATH(CMAKE_Xlib_INCLUDE_PATH X11/Xlib.h ${CMAKE_X11_INC_SEARCH_PATH})
+ FIND_PATH(CMAKE_Xutil_INCLUDE_PATH X11/Xutil.h ${CMAKE_X11_INC_SEARCH_PATH})
+ FIND_LIBRARY(CMAKE_X11_LIB X11 ${CMAKE_X11_LIB_SEARCH_PATH})
+ FIND_LIBRARY(CMAKE_Xext_LIB Xext ${CMAKE_X11_LIB_SEARCH_PATH})
+
IF(CMAKE_X11_INCLUDE_PATH)
SET(CMAKE_X_INCLUDE_DIRS ${CMAKE_X_INCLUDE_DIRS} ${CMAKE_X11_INCLUDE_PATH})
ENDIF(CMAKE_X11_INCLUDE_PATH)