What is a CMake generator? - Stack Overflow
stackoverflow.com › questions › 25941536A CMake Generator is responsible for writing the input files for a native build system. means that CMake prepares build scripts for a native build system when no generator is specified. In Linux the default build system is Make and its input file are makefiles, which are then interpreted and a build is executed accordingly. Before the first execution of CMake build scripts do not exist.
CMAKE_GENERATOR — CMake 3.23.0-rc1 Documentation
cmake.org › latest › envvarCMAKE_GENERATOR. ¶. New in version 3.15. This is a CMake Environment Variable. Its initial value is taken from the calling process environment. Specifies the CMake default generator to use when no generator is supplied with -G. If the provided value doesn't name a generator known by CMake, the internal default is used.
CMAKE_GENERATOR — CMake 3.23.0-rc3 Documentation
cmake.org › latest › variableCMAKE_GENERATOR. ¶. The generator used to build the project. See cmake-generators (7). The name of the generator that is being used to generate the build files. (e.g. Unix Makefiles, Ninja, etc.) The value of this variable should never be modified by project code. A generator may be selected via the cmake (1) -G option, interactively in cmake-gui (1), or via the CMAKE_GENERATOR environment variable.
cmake-generators(7) — CMake 3.23.0-rc3 Documentation
cmake.org › latest › manualA CMake Generator is responsible for writing the input files for a native build system. Exactly one of the CMake Generators must be selected for a build tree to determine what native build system is to be used. Optionally one of the Extra Generators may be selected as a variant of some of the Command-Line Build Tool Generators to produce project files for an auxiliary IDE.