install(PROGRAMS): strip like install(TARGETS)
I'm working on an app that relies on sentry for crash reports. Sentry relies on an executable called crashpad_handler to do some of the work. We consume sentry (and crashpad_handler) using Conan, so we get pre-compiled artifacts.
find_package(sentry REQUIRED)
target_link_libraries(app INTERFACE sentry::sentry)
# Install crashpad_handler, needed for sentry
find_program(CRASHPAD_HANDLER NAMES crashpad_handler REQUIRED)
install(PROGRAMS ${CRASHPAD_HANDLER}
DESTINATION bin
)
Then we create 2 deb packages, one where everything is stripped and one where nothing is. We need this.
For this we user CPack
and the DEB
generator, setting the CPACK_STRIP_FILES
variable ON/OFF.
Regardless of the value of that flag, the crashpad_handler
executable never gets stripped whereas the rest of the apps and shared libraries we install get properly stripped when needed.
Is this a bug or is this intended behavior?
Thanks!
Eric.
Edited by Brad King