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/amdsmi commit: 77502bed2a]
此提交包含在:
Bill(Shuzhou) Liu committed 2022-01-14 10:39:15 -05:00
1 父節點 a014132bba
當前提交 e21e1aff43
1 file changed
+1 -1
+1 -1
查看文件
@@ -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 ()