I'm reading a book on numerical recipes and I'm having a bit of trouble trying to prove a statement made by the authors: given $B \in \mathbb{R}^{n \times r}$ with orthonormal columns (forming an orthogonal base in $\operatorname{Im} B = S$), then $P = BB'$ is an orthogonal projection on $S$ and its also unique.
Now the first part about $P$ being an orthogonal projection is clear, but its uniqueness is not so clear to me. Could anyone help me understand why $P$ is unique?