Revert "cmake: Avoid overwriting compiler name if specified repeatedly."

This reverts commit a12e4e782c9c8d290071a3fb8f8abcf5cba24afe.
We will use another approach to resolve this problem.
Merge topic 'fix-broken-re-cmake' into next

051fb2e2 Revert "cmake: Avoid overwriting compiler name if specified repeatedly."