CMakeCInformation.cmake overrides CMAKE_C_OUTPUT_EXTENSION when set by toolchain file
This discussion has further details. https://stackoverflow.com/questions/51842952/how-to-set-specific-cmake-c-output-extension-for-cross-compiling-configurations/53546736
It seems that the toolchain file is the appropriate place to set the desired output extension when using a custom toolchain.