Why doesn't "cmake --install --strip" doesn't strip binary if MACOSX_BUNDLE is set on a target?

Apparently if I set MACOSX_BUNDLE property on an executable target, CMake will not strip in on installation even if I explicitly request it.

I found where in CMake source code it’s done: https://gitlab.kitware.com/cmake/cmake/-/blob/master/Source/cmInstallTargetGenerator.cxx#L826

However this code was there since the beginning of time and there is no explanation on why stripping is disabled or how I can work around this.

This sounds like an issue to be filed. I expect it will need a policy to change.