C++ 23 · CMake

Configure a build

Generate the build system in a separate build folder. Release mode turns on optimization.

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release

Official C++ 23 documentation

More cmake commands

All cmake commands · C++ 23 cheatsheet

Was this page helpful?