diff options
author | Marc-André Moreau <marcandre.moreau@gmail.com> | 2011-11-27 02:59:03 +0400 |
---|---|---|
committer | Marc-André Moreau <marcandre.moreau@gmail.com> | 2011-11-27 02:59:03 +0400 |
commit | 23f5517c1c41588a15f00575a3ec83496cba9e7a (patch) | |
tree | e609a4d29a6f2afc0b38ff823be7b027876f0a02 /cmake/FindXKBFILE.cmake | |
parent | 62ee2d0bdbdc9db5eea87ec537aa447783b10d46 (diff) |
cmake: fix missing libraries for RDP plugin
Diffstat (limited to 'cmake/FindXKBFILE.cmake')
-rw-r--r-- | cmake/FindXKBFILE.cmake | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/cmake/FindXKBFILE.cmake b/cmake/FindXKBFILE.cmake index dd70464ec..965b385b9 100644 --- a/cmake/FindXKBFILE.cmake +++ b/cmake/FindXKBFILE.cmake @@ -17,19 +17,22 @@ # Foundation, Inc., 59 Temple Place, Suite 330, # Boston, MA 02111-1307, USA. +find_package(PkgConfig) +pkg_check_modules(PC_XKBFILE xkbfile) + find_path(XKBFILE_INCLUDE_DIR NAMES XKBfile.h - PATH_SUFFIXES X11/extensions) + HINTS ${PC_XKBFILE_INCLUDEDIR} ${PC_XKBFILE_INCLUDE_DIRS} + PATH_SUFFIXES X11/extensions) -find_library(XKBFILE_LIBRARY NAMES xkbfile) +find_library(XKBFILE_LIBRARY NAMES xkbfile + HINTS ${PC_XKBFILE_LIBDIR} ${PC_XKBFILE_LIBRARY_DIRS}) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(XKBFILE DEFAULT_MSG XKBFILE_LIBRARY XKBFILE_INCLUDE_DIR) -if(XKBFILE_FOUND) - set(XKBFILE_LIBRARIES ${XKBFILE_LIBRARY}) - set(XKBFILE_INCLUDE_DIRS ${XKBFILE_INCLUDE_DIR}) -endif() +set(XKBFILE_LIBRARIES ${XKBFILE_LIBRARY}) +set(XKBFILE_INCLUDE_DIRS ${XKBFILE_INCLUDE_DIR}) mark_as_advanced(XKBFILE_INCLUDE_DIR XKBFILE_LIBRARY) |