From 77502bed2ac3c141961399c7dd19e67a69aa6ca2 Mon Sep 17 00:00:00 2001 From: "Bill(Shuzhou) Liu" Date: Fri, 14 Jan 2022 10:36:46 -0500 Subject: [PATCH] strip the library instead of link when build release When build the release, it will strip the library file instead of link. Change-Id: Ib2d4cea614e8938bdb2be0fd74f046680158d256 --- rocm_smi/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocm_smi/CMakeLists.txt b/rocm_smi/CMakeLists.txt index dff27c9f42..e6c49b87e9 100755 --- a/rocm_smi/CMakeLists.txt +++ b/rocm_smi/CMakeLists.txt @@ -99,7 +99,7 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL Release) if(${BUILD_SHARED_LIBS}) #stripping only for .so add_custom_command( TARGET ${ROCM_SMI_TARGET} - POST_BUILD COMMAND ${CMAKE_STRIP} lib${ROCM_SMI_TARGET}.so) + POST_BUILD COMMAND ${CMAKE_STRIP} lib${ROCM_SMI_TARGET}.so.${SO_VERSION_STRING}) endif() endif ()