try_compile() drops CMAKE_<LANG>_USING_LINKER_... vars where <LANG> has a hyphen or underscore
The regular expression used here to decide what variables to pass to the try_compile() when CMAKE_LINKER_TYPE
is defined is:
cmsys::RegularExpression linkerTypeDef{
"^CMAKE_[A-Za-z]+_USING_LINKER_"
};
This doesn't match the variables where the language is something like ASM_NASM
or ASM-ATT
. Underscores and hyphens need to be added to the [...]
to allow such languages to be included.
We also have no test coverage for that particular if()
block. It would be good to add a test to verify the expected variables do get passed down to the try_compile()
.