From a5a30e81990e42d32218df044e4bce05451e410b Mon Sep 17 00:00:00 2001 From: James Edwards Date: Thu, 9 Feb 2017 14:42:14 -0600 Subject: [PATCH] Fix file stripping for release builds. Change-Id: I538c366f0992980ffff1ef337807035b9378845c --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 82f4aef425..1adbe8f102 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,7 +91,7 @@ target_link_libraries ( ${HSAKMT_TARGET} ## 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} *.so* ) + add_custom_command ( TARGET ${HSAKMT_TARGET} POST_BUILD COMMAND ${CMAKE_STRIP} ${HSAKMT_COMPONENT}.so ) endif () ## Create symlinks for packaging and install