CMAKE_GENERATOR
From Get docs
Cmake/docs/3.21/variable/cmake generator
CMAKE_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.
© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/CMAKE_GENERATOR.html