diff options
| author | SupervisedThinking <supervisedthinking@gmail.com> | 2021-11-23 13:18:49 +0100 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2022-01-13 13:47:10 -0700 |
| commit | 2ee12e8ba3b306b7e8aa71695cbe0e2ff451cf3f (patch) | |
| tree | d854cdd0c4f1897905963ab0d79fa1e04156e76f | |
| parent | 440848d05f8340ee5a3b9d5957f79dfa1426a5cf (diff) | |
| download | usermoji-2ee12e8ba3b306b7e8aa71695cbe0e2ff451cf3f.tar.xz | |
cmake/FindWaylandProtocols: fix wayland protocol path generation for cross compile
| -rw-r--r-- | cmake/FindWaylandProtocols.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/FindWaylandProtocols.cmake b/cmake/FindWaylandProtocols.cmake index 17859ed7..73d8548a 100644 --- a/cmake/FindWaylandProtocols.cmake +++ b/cmake/FindWaylandProtocols.cmake @@ -6,8 +6,9 @@ if(NOT WIN32) find_package(PkgConfig) - pkg_check_modules(PKG_WAYLAND_PROTOCOLS QUIET wayland-protocols) - set(WAYLAND_PROTOCOLS_PATH ${PKG_WAYLAND_PROTOCOLS_PREFIX}/share/wayland-protocols) + pkg_check_modules(WAYLAND_PROTOCOLS_PATH REQUIRED wayland-protocols) + execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=pkgdatadir wayland-protocols + OUTPUT_VARIABLE WAYLAND_PROTOCOLS_PATH OUTPUT_STRIP_TRAILING_WHITESPACE) find_package_handle_standard_args(WAYLAND DEFAULT_MSG WAYLAND_PROTOCOLS_PATH) mark_as_advanced(WAYLAND_PROTOCOLS_PATH) endif() |
