]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
spirv-tools: Correctly set the prefix in exported cmake packages
authorJordan Crouse <jorcrous@amazon.com>
Fri, 11 Nov 2022 21:47:12 +0000 (21:47 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Nov 2022 16:19:39 +0000 (16:19 +0000)
commitca2d6d9164fba91d86357e56617b58eeeeb76d72
tree30722b0a70526331dcb2e637647577e8a2490ac5
parent698a8cc958bdc0a81b85011ef51cb205fd858732
spirv-tools: Correctly set the prefix in exported cmake packages

spirv-tools exports Cmake packages.  When they are installed the
INTERFACE_LINK_LIBRARIES variable is not correctly updated to use
_IMPORT_PREFIX like the other variables. This may have something to do with
the path to the sysroot being different than the source path.

The existing recipe recognizes that the sysroot path made it through to the
install and tries to get rid of it, but this just ends up with dependent
tools looking in vain for /usr/lib/librt.so.

Replace the INTERFACE_LINK_LIBRARIES value in SPIRV-ToolsTarget.cmake with
"${IMPORT_PREFIX}/lib".

Signed-off-by: Jordan Crouse <jorcrous@amazon.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-graphics/spir/spirv-tools_1.3.231.1.bb