From 6e01df00ca3b6cb1f4bc156529dfd9ecd0d078de Mon Sep 17 00:00:00 2001 From: adapryor Date: Mon, 28 Oct 2024 08:59:03 -0500 Subject: [PATCH] [SWDEV-446215] Update cmake to put test libs in proper lib dir Change-Id: I2e91b904b3f869cdba717d872c10d799d0260c30 Signed-off-by: adapryor --- tests/amd_smi_test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/amd_smi_test/CMakeLists.txt b/tests/amd_smi_test/CMakeLists.txt index 6433986a9a..c80b7648dc 100644 --- a/tests/amd_smi_test/CMakeLists.txt +++ b/tests/amd_smi_test/CMakeLists.txt @@ -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" + "\$ORIGIN:\$ORIGIN/../../../lib:CPACK_PACKAGING_INSTALL_PREFIX/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 ${SHARE_INSTALL_PREFIX}/tests + DESTINATION ${CPACK_PACKAGING_INSTALL_PREFIX}/lib COMPONENT ${TESTS_COMPONENT})