cmake: Allow CMAKE_TOOLCHAIN_FILE to be set by environment variable
When no CMAKE_TOOLCHAIN_FILE
is explicitly specified while creating
a new build tree, check for an environment variable of the same name.
Fixes: #19842 (closed)
Edited by Brad King