From 32dc41e79534922d987198d51195d18af6cbbcc6 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Fri, 13 Feb 2015 22:11:38 +0300 Subject: [PATCH] Remove stripping of debug binaries. --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 347f35968..1f329f887 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -273,10 +273,12 @@ project (Jerry CXX C ASM) DEPENDS ${TARGET_NAME}.bin) endif() - if(${STRIP_RELEASE_BINARY} STREQUAL "ON") - add_custom_command(TARGET ${TARGET_NAME} - POST_BUILD - COMMAND ${CMAKE_STRIP} $) + if("${BUILD_MODE}" STREQUAL "RELEASE") + if(${STRIP_RELEASE_BINARY} STREQUAL "ON") + add_custom_command(TARGET ${TARGET_NAME} + POST_BUILD + COMMAND ${CMAKE_STRIP} $) + endif() endif() endfunction()