Published:

Cmake cheat sheet

bookmark 1 min read

This article is work in progress, and mostly for my own reference.

List all CMake variables

From the build directory

cmake -LAH ..

Make release build

cmake -DCMAKE_BUILD_TYPE=Release

Build from cmake

cmake --build . --config Debug
cmake --build . --config Release