rocmPackages_5.miopen: correctly link gtest

This commit is contained in:
David Warde-Farley 2024-03-29 20:17:09 +00:00
parent c77e28a013
commit 5165779503
1 changed files with 4 additions and 0 deletions

View File

@ -156,6 +156,7 @@ in stdenv.mkDerivation (finalAttrs: {
python3Packages.breathe
python3Packages.myst-parser
] ++ lib.optionals buildTests [
gtest
zlib
];
@ -190,6 +191,9 @@ in stdenv.mkDerivation (finalAttrs: {
substituteInPlace test/gtest/CMakeLists.txt \
--replace "include(googletest)" ""
substituteInPlace test/gtest/CMakeLists.txt \
--replace-fail " gtest_main " " ${gtest}/lib/libgtest.so ${gtest}/lib/libgtest_main.so "
ln -sf ${gfx900} src/kernels/gfx900.kdb
ln -sf ${gfx906} src/kernels/gfx906.kdb
ln -sf ${gfx908} src/kernels/gfx908.kdb