Skip to content

Commit

Permalink
dev-util/spirv-tools: fix gentoo prefix cmake configure issue
Browse files Browse the repository at this point in the history
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 <[email protected]>
Closes: gentoo#21652
Signed-off-by: Nick Sarnie <[email protected]>
  • Loading branch information
littlewu2508 authored and sarnex committed Jul 17, 2021
1 parent 5062143 commit ed46712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-util/spirv-tools/spirv-tools-2021.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ed46712

Please sign in to comment.