Do not strip debug info for CMAKE_BUILD_TYPE=RelWithDebInfo
authorBenjamin Drung <benjamin.drung@canonical.com>
Thu, 22 Sep 2022 23:20:54 +0000 (01:20 +0200)
committerDennis Braun <snd@debian.org>
Wed, 1 Feb 2023 20:56:51 +0000 (21:56 +0100)
commitd7c477742c29cd4c3020532cf41d74dc057e77be
tree3ae12c9879506449cd7f2b4dfbead3592ea8ce78
parentb5b90a1cfdc3f03c433736b628c1aca37c713f69
Do not strip debug info for CMAKE_BUILD_TYPE=RelWithDebInfo

If `CMAKE_BUILD_TYPE` is set to `RelWithDebInfo` the debug information
should not be stripped. Currently `strip -x` is called when
`RelWithDebInfo` is set. A useless `echo` is called when `Debug` is set.

Skip `strip -x` when `CMAKE_BUILD_TYPE` is set to `Debug` or
`RelWithDebInfo`.

Forwarded: https://github.com/audacity/audacity/pull/3672
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
Gbp-Pq: Name Do-not-strip-debug-info-for-CMAKE_BUILD_TYPE-RelWithDebIn.patch
cmake-proxies/cmake-modules/AudacityFunctions.cmake