Fix compilation with the Oracle / Sun compiler (#15318)

One piece of code has some ambiguous type deduction that seems to
resolve correctly for most compilers but not for the Oracle compiler.
Make it more explicit.
Merge branch 'backport-suncc-fixes' into release
Help: Small fixes in CPackComponent documentation
Merge branch 'CPackComponent-docs-fix' into release
Ninja: Do not crash when CMAKE_<LANG>_COMPILE_OBJECT is empty (#15325)
Merge branch 'ninja-fix-crash-on-error' into release