CMake: Standardize compiler and architecture detection for build names

libeigen/eigen!3405

Closes #1467
4 files changed