Feature request: CheckCLinkerFlag
Currently there is no idiomatic way provided to test flags supported by the linker.
Check<LANG>CompilerFlag
does not work for linker flags. Folks are adding their own implementations to check the linker flags, e.g. https://github.com/JinpilRCCS/llvm_toy/blob/800fafb88632d39309782a80b53a89a92399560f/openmp-4.0.0.src/runtime/cmake/LibompCheckLinkerFlag.cmake.
It would be quite useful for devs if CheckCLinkerFlag
(or more generally, Check<LANG>LinkerFlag
) is provided OOTB.
Thanks!