diff options
author | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2021-10-05 11:24:38 +0100 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2021-10-21 20:40:08 +0000 |
commit | 0516940f89f0b30d40e86c92b2876398de14cdb0 (patch) | |
tree | b6d7981240f6bcc56e52ac6824c29f10751947f2 /kde-modules/kde-git-commit-hooks | |
parent | e62246c5ee18649e4e89eb69a4cf51b2586ced83 (diff) | |
download | extra-cmake-modules-0516940f89f0b30d40e86c92b2876398de14cdb0.tar.gz extra-cmake-modules-0516940f89f0b30d40e86c92b2876398de14cdb0.tar.bz2 |
Fix Wayland_DATADIR when cross-compiling
PKG_CONFIG_SYSROOT_DIR only applies to -I and -L flags, so pkg-config
does not prepend CMAKE_SYSROOT when cross-compiling unless you pass
--define-prefix explicitly. Therefore we have to manually do prepend
it here when cross-compiling.
See https://gitlab.kitware.com/cmake/cmake/-/issues/16647#note_844761.
With this change I no longer get errors related to wayland.xml when
cross-compiling KWaylandServer.
Diffstat (limited to 'kde-modules/kde-git-commit-hooks')
0 files changed, 0 insertions, 0 deletions