Remove stripping of debug binaries.

This commit is contained in:
Ruben Ayrapetyan
2015-02-13 22:11:38 +03:00
parent 43ea53b1d7
commit 32dc41e795
+6 -4
View File
@@ -273,10 +273,12 @@ project (Jerry CXX C ASM)
DEPENDS ${TARGET_NAME}.bin) DEPENDS ${TARGET_NAME}.bin)
endif() endif()
if(${STRIP_RELEASE_BINARY} STREQUAL "ON") if("${BUILD_MODE}" STREQUAL "RELEASE")
add_custom_command(TARGET ${TARGET_NAME} if(${STRIP_RELEASE_BINARY} STREQUAL "ON")
POST_BUILD add_custom_command(TARGET ${TARGET_NAME}
COMMAND ${CMAKE_STRIP} $<TARGET_FILE:${TARGET_NAME}>) POST_BUILD
COMMAND ${CMAKE_STRIP} $<TARGET_FILE:${TARGET_NAME}>)
endif()
endif() endif()
endfunction() endfunction()