dev-util/spirv-tools: fix gentoo prefix cmake configure issue

during cmake configuration, SPIRV-Headers_SOURCE_DIR sets to /usr
causing cmake cannot find /usr/include/spirv/unified1/spirv.core.grammar.json

Closes: https://bugs.gentoo.org/802240
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/21652
Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
This commit is contained in:
YiyangWu
2021-07-15 22:02:03 +08:00
committed by Nick Sarnie
parent 50621430ee
commit ed46712fd1

View File

@@ -34,7 +34,7 @@ BDEPEND="${PYTHON_DEPS}
multilib_src_configure() {
local mycmakeargs=(
"-DSPIRV-Headers_SOURCE_DIR=/usr/"
"-DSPIRV-Headers_SOURCE_DIR=${ESYSROOT}/usr/"
"-DSPIRV_WERROR=OFF"
"-DSPIRV_TOOLS_BUILD_STATIC=OFF"
"-DBUILD_SHARED_LIBS=ON"