From 887b760c88866a9a3e325bf94e71fa10a0dc7c1e Mon Sep 17 00:00:00 2001 From: Bouke Haarsma Date: Mon, 10 Oct 2022 14:42:54 +0200 Subject: [PATCH] Change: Strip symbols from bundles except macOS (#10072) --- cmake/InstallAndPackage.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/InstallAndPackage.cmake b/cmake/InstallAndPackage.cmake index 8deb439ff6..be37b9b745 100644 --- a/cmake/InstallAndPackage.cmake +++ b/cmake/InstallAndPackage.cmake @@ -118,10 +118,12 @@ endif() set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md") set(CPACK_MONOLITHIC_INSTALL YES) set(CPACK_PACKAGE_EXECUTABLES "openttd;OpenTTD") -set(CPACK_STRIP_FILES NO) +set(CPACK_STRIP_FILES YES) set(CPACK_OUTPUT_FILE_PREFIX "bundles") if(APPLE) + # Stripping would produce unreadable stacktraces. + set(CPACK_STRIP_FILES NO) set(CPACK_GENERATOR "Bundle") include(PackageBundle)