diff options
author | Marc Ferland <marc.ferland@sonatest.com> | 2025-08-26 14:18:12 -0400 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2025-09-23 16:30:13 +0800 |
commit | a05db3fd5c75e1b7df7a65422c04650d7fc7f178 (patch) | |
tree | 116299fd60bbe61406f07e45aaaf0e16fe9fa8f3 /meta-python/recipes-devtools/python/python-m2crypto | |
parent | fd29867987066fc047482b90796bbcd5fdf1a481 (diff) | |
download | meta-openembedded-a05db3fd5c75e1b7df7a65422c04650d7fc7f178.tar.gz |
libvncserver: fix generated LibVNCServerTargets.cmake
The currently generated LibVNCServerTargets.cmake will include the
following 'set_target_properties':
set_target_properties(LibVNCServer::vncclient PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
INTERFACE_LINK_LIBRARIES "systemd;/usr/lib/libz.so;/usr/lib/liblzo2.so;/usr/lib/libjpeg.so;/usr/lib/libgcrypt.so;/usr/lib/libgnutls.so"
)
INTERFACE_LINK_LIBRARIES here points to absolute paths which hardcodes
the library paths. From CMake doc [1]:
Note that it is not advisable to populate the INTERFACE_LINK_LIBRARIES
of a target with absolute paths to dependencies. That would hard-code
into installed packages the library file paths for dependencies as
found on the machine the package was made on.
This breaks krfb build (kde desktop sharing server) since CMake cannot
find these libraries. Removing the absolute paths solves the issue.
Note: I also added a 'inherit pkgconfig' since libvncserver uses it to
detect libsystemd presence.
1: https://cmake.org/cmake/help/latest/prop_tgt/INTERFACE_LINK_LIBRARIES.html
Signed-off-by: Marc Ferland <marc.ferland@sonatest.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 215694286716cf83bf9e52c5e61b4cbc861098fc)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-m2crypto')
0 files changed, 0 insertions, 0 deletions