diff options
author | Laurent Montel <montel@kde.org> | 2006-02-23 13:34:35 +0000 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2006-02-23 13:34:35 +0000 |
commit | 18ef27a380f366e9afa8aea2df116171eb547b30 (patch) | |
tree | ad121171ada167426c812685e3ee531bbb67ac90 | |
parent | f9aeebbc8f6aafa913b75bca4aef70f89883376e (diff) | |
download | extra-cmake-modules-18ef27a380f366e9afa8aea2df116171eb547b30.tar.gz extra-cmake-modules-18ef27a380f366e9afa8aea2df116171eb547b30.tar.bz2 |
Fix search xkb extension
svn path=/trunk/KDE/kdelibs/; revision=512735
-rw-r--r-- | modules/FindX11.cmake | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/FindX11.cmake b/modules/FindX11.cmake index 13451fa2..facc99e4 100644 --- a/modules/FindX11.cmake +++ b/modules/FindX11.cmake @@ -27,7 +27,9 @@ if (UNIX) FIND_PATH(X11_X11_INCLUDE_PATH X11/X.h ${X11_INC_SEARCH_PATH}) FIND_PATH(X11_Xlib_INCLUDE_PATH X11/Xlib.h ${X11_INC_SEARCH_PATH}) FIND_PATH(X11_Xutil_INCLUDE_PATH X11/Xutil.h ${X11_INC_SEARCH_PATH}) - FIND_PATH(X11_Xaccess_INCLUDE_PATH X11/extensions/XKBstr.h ${X11_INC_SEARCH_PATH}) + FIND_PATH(X11_Xaccessstr_INCLUDE_PATH X11/extensions/XKBstr.h ${X11_INC_SEARCH_PATH}) +#Solaris lacks this file, so we should skip kxkbd here + FIND_PATH(X11_Xaccessrules_INCLUDE_PATH X11/extensions/XKBrules.h ${X11_INC_SEARCH_PATH}) FIND_PATH(X11_Xcomposite_INCLUDE_PATH X11/extensions/Xcomposite.h ${X11_INC_SEARCH_PATH}) FIND_PATH(X11_Xfixes_INCLUDE_PATH X11/extensions/Xfixes.h ${X11_INC_SEARCH_PATH}) FIND_PATH(X11_Xrandr_INCLUDE_PATH X11/extensions/Xrandr.h ${X11_INC_SEARCH_PATH}) @@ -62,9 +64,10 @@ if (UNIX) set(X11_LIBRARIES ${X11_LIBRARIES} ${X11_Xext_LIB}) endif(X11_Xext_LIB) - if(X11_Xaccess_INCLUDE_PATH) + if(X11_Xaccessrules_INCLUDE_PATH AND X11_Xaccessstr_INCLUDE_PATH) set(X11_Xaccess_FOUND TRUE) - endif(X11_Xaccess_INCLUDE_PATH) + set(X11_Xaccess_INCLUDE_PATH ${X11_Xaccessstr_INCLUDE_PATH}) + endif(X11_Xaccessrules_INCLUDE_PATH AND X11_Xaccessstr_INCLUDE_PATH) if(X11_Xcomposite_INCLUDE_PATH) set(X11_Xcomposite_FOUND TRUE) |