Target install/strip should actually strip all executables
I was just trying for a long time to figure out why the cmake-generated target
install/strip did not even attempt to strip the binaries I installed with
Turns out (at least it seems that way) that cmake only ever attempts to strip binaries if they are installed with an
install(TARGET ...) command.
In my opinion this is extremely counter-intuitive and should be changed. If existing behavior should not be changed, consider to implement it as an additional
STRIP option for
If this (for whatever reason) the intended behavior, at the very least documentation should be created describing what the cmake-genrated
install/strip is supposed to do and how it has to be used to make it work as I had to find the bits and pieces scattered across the internet and was not able to find official documentation on it so far.