all repos — mgba @ 69382109b77c2fcd90fbbd082a9a6efc4b31d6c8

mGBA Game Boy Advance Emulator

CMake: Don't strip non-release builds
Vicki Pfau vi@endrift.com
Fri, 28 Sep 2018 15:40:01 -0700
commit

69382109b77c2fcd90fbbd082a9a6efc4b31d6c8

parent

fe57533f223d0eb92830d0b6f557a6dbd6a01fce

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -1045,9 +1045,11 @@ set(CPACK_PACKAGE_CONTACT "Jeffrey Pfau <jeffrey@endrift.com>")

set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md") set(CPACK_DEBIAN_PACKAGE_SECTION "games") -SET(CPACK_DEB_COMPONENT_INSTALL ON) +set(CPACK_DEB_COMPONENT_INSTALL ON) -set(CPACK_STRIP_FILES ON) +if(CMAKE_BUILD_TYPE STREQUAL "Release") + set(CPACK_STRIP_FILES ON) +endif() if(DISTBUILD) set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)