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]
Este cometimento está contido em:
Bill(Shuzhou) Liu cometeu 2022-01-14 10:39:15 -05:00
1 ascendente a014132bba
cometimento e21e1aff43
1 ficheiro modificado
+1 -1
+1 -1
Ver ficheiro
@@ -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 ()