Revert "[SWDEV-446215] Update cmake to put test libs in proper lib dir"

This reverts commit a33cdd7da6.

Reason for revert: Because the gtest of amdsmi is different to other components so it was installed in a share/amdsmi/lib folder. It cannot be installed in a common folder such as /usr/local/bin or /usr/bin because all other components try to search those folder first.

 

This is breaking ROCmValidationSuite and other tools. Per Wang, Yanyao this should be reverted.

Change-Id: Id61bc6056fe41800e738616f39293e9b8762a377


[ROCm/amdsmi commit: b7789d4699]
Tento commit je obsažen v:
Adam Pryor
2024-11-15 10:51:37 -05:00
odevzdal Dmitrii Galantsev
rodič 48da4536c7
revize 469b40d573
+2 -2
Zobrazit soubor
@@ -4,7 +4,7 @@ option(INSTALL_GTEST "Install GTest (only useful if GTest is not already install
# Help tests find libraries at runtime
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--enable-new-dtags")
set(CMAKE_INSTALL_RPATH
"\$ORIGIN:\$ORIGIN/../../../lib:CPACK_PACKAGING_INSTALL_PREFIX/lib"
"\$ORIGIN:\$ORIGIN/../../../lib"
CACHE STRING "RUNPATH for tests. Helps find libgtest.so and libamd_smi.so")
# Download and compile googletest
@@ -76,6 +76,6 @@ install(
# Install googletest libraries with tests
install(TARGETS gtest gtest_main
DESTINATION ${CPACK_PACKAGING_INSTALL_PREFIX}/lib
DESTINATION ${SHARE_INSTALL_PREFIX}/tests
COMPONENT ${TESTS_COMPONENT})