I am looking for a way for CMake to query which version of the linker is currently being used. I have to fail a build if the linker version is too high or low. So far I could not find an easy way to do so except to execute the command ld --version
and parse the output manually which is ugly and won't work cross-platform.
Thanks!