cannot use CMAKE_SOURCE_DIR in toolchain file

Thank you. Very helpful.
Is there a link about CMake variables and their initialization readiness?