To generate the toolchain files, use cmake(1) as per usual: $ cmake -B build -Wno-dev . No building is required. Warnings are ignored, because GNUInstallDirs will complain about all languages being disabled. There is also an unconventional install target: $ cd build/ $ make install "Unconventional," because there is no usual location to put toolchain files. Additionally, some toolchains distribute with their definitions and some not (MinGW for instance; that's why we are here). This is an attempt to have some consistency in my environment for my own convenience without using wrapper scripts for cmake.