From 69382109b77c2fcd90fbbd082a9a6efc4b31d6c8 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 28 Sep 2018 15:40:01 -0700 Subject: [PATCH] CMake: Don't strip non-release builds --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 88bf9a5d9..87deecf63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1045,9 +1045,11 @@ set(CPACK_PACKAGE_CONTACT "Jeffrey Pfau ") 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)