Fix compilation on OpenSuSE 13.1 which puts xkbcommon.h in /usr/include/pkg/libxkbcommon/xkbcommon/
This commit is contained in:
parent
20bc3ff68b
commit
924b8b5a9e
2 changed files with 5 additions and 3 deletions
|
@ -192,6 +192,10 @@ if(KWIN_BUILD_OPENGLES)
|
|||
include_directories(${OPENGLES_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
if (XKB_FOUND)
|
||||
include_directories(${XKB_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
# for things that are also used by kwin libraries
|
||||
configure_file(libkwineffects/kwinconfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/libkwineffects/kwinconfig.h )
|
||||
# for kwin internal things
|
||||
|
|
|
@ -33,11 +33,9 @@ if(NOT WIN32)
|
|||
|
||||
find_path(XKB_INCLUDE_DIR
|
||||
NAMES
|
||||
xkbcommon.h
|
||||
xkbcommon/xkbcommon.h
|
||||
HINTS
|
||||
${PKG_XKB_INCLUDE_DIRS}
|
||||
PATH_SUFFIXES
|
||||
xkbcommon
|
||||
)
|
||||
find_library(XKB_LIBRARY
|
||||
NAMES
|
||||
|
|
Loading…
Reference in a new issue