cmake: Do not strip targets in the release build

Distributions want to generate debuginfo packages, do not strip them! If
you want to do it during installation use 'make install/strip'!

Change-Id: I3983af24ce4f4ddb189ede0ed0820dfee83b6280


[ROCm/ROCR-Runtime commit: 8ccfa4c75c]
这个提交包含在:
Andreas Schneider 编写, Kent Russell 于 2019-04-19 07:06:28 -04:00 提交
1 父节点 4006e1f112
当前提交 d698471b8a
1 个文件已更改
-5
-5
查看文件
@@ -113,11 +113,6 @@ target_link_libraries ( ${HSAKMT_TARGET}
pthread rt numa ${PC_LIBPCI_LIBRARIES}
)
## If the library is a release, strip the target library
if ( "${CMAKE_BUILD_TYPE}" STREQUAL Release )
add_custom_command ( TARGET ${HSAKMT_TARGET} POST_BUILD COMMAND ${CMAKE_STRIP} ${HSAKMT_COMPONENT}.so )
endif ()
## Define default variable and variables for the optional build target hsakmt-dev
set ( SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE STRING "Location of hsakmt source code." )
set ( CMAKE_INSTALL_PREFIX "/opt/rocm" CACHE STRING "Default installation directory." )