CMAKE_LINKER_ID ?
CMAKE_C_COMPILER_ID exists, would it be possible to export CMAKE_LINKER_ID as well ? This would clean up some linker flags management code or make it more explicit, specifically on MacOS at least.
The linker seems to be executed and inspected with ld -v
or ld --version
by default anyway.