enable_language: combine try_compile for working compiler and ABI detection
Cc: @craig.scott @marc.chevrier
CMakeTest*Compiler.cmake
and CMakeDetermineCompilerABI.cmake
each do a try_compile
to test and then introspect the compiler. #18700 (closed) demonstrates how much each initialization check can affect small projects (and CMake's test suite). I suspect it is possible to combine the roles of CMakeTest*Compiler.cmake
and CMakeDetermineCompilerABI.cmake
into a single try_compile
call.