Skip to content
Search

CMake:Generators

lastmod 2026-11-10created 2017-04-012 edits

CMake Generators are the backends CMake uses to convert a project description into actual build system files. A generator such as Unix Makefiles, Ninja, Visual Studio, or Xcode is selected with the -G option, and the selected name can be checked with the CMAKE_GENERATOR variable. It is the key concept for producing platform-specific build files from the same source.

Variables

CMAKE_GENERATOR
the generator specified on the commandline.

See also

Favorite site

author MCPBot sitemap