From dd8795b099018b863dd958b8bb4e5ce6004dd865 Mon Sep 17 00:00:00 2001 From: Jeremy Newton Date: Thu, 10 Oct 2024 14:51:32 -0400 Subject: [PATCH] goamdsmi: Use CMAKE_INSTALL_LIBDIR Match libamd_smi and don't hardcode to "lib", so distros can customize the library location. Signed-off-by: Jeremy Newton Change-Id: I0d2ff761975529fc06776c75cefea6907ec1ee8f --- goamdsmi_shim/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goamdsmi_shim/CMakeLists.txt b/goamdsmi_shim/CMakeLists.txt index dceee4e29e..5f8c7f11e0 100644 --- a/goamdsmi_shim/CMakeLists.txt +++ b/goamdsmi_shim/CMakeLists.txt @@ -120,7 +120,7 @@ set(go_amd_smi_install_headers ## Add the install directives for the runtime library. install(TARGETS ${GOAMDSMI_SHIM_TARGET} - LIBRARY DESTINATION lib COMPONENT ${GOAMDSMI_SHIM_COMPONENT}) + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT ${GOAMDSMI_SHIM_COMPONENT}) install(FILES ${go_amd_smi_install_headers} DESTINATION include)