rocmPackages_6.miopen: correctly link gtest

This commit is contained in:
David Warde-Farley 2024-03-29 20:17:25 +00:00
parent 5165779503
commit 4eac13a88c

View file

@ -155,6 +155,7 @@ in stdenv.mkDerivation (finalAttrs: {
python3Packages.breathe
python3Packages.myst-parser
] ++ lib.optionals buildTests [
gtest
zlib
];
@ -185,6 +186,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