3.18.1. Globals

Even if toolchain is originally designed to help with cross-compiling and usually containing fancy variables like CMAKE_SYSTEM_NAME or CMAKE_FIND_ROOT_PATH in practice it can help you with holding compiler settings that logically doesn’t belong to some particular local CMakeLists.txt but rather should be shared across various projects.