Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-31 00:21:41 +00:00
parent 5985fac848
commit af1e54b296
12 changed files with 83 additions and 36 deletions

View File

@@ -22,13 +22,13 @@ source: https://github.com/tldr-pages/tldr.git
- Generate a build recipe, with build type set to `Release` with CMake variable:
`cmake {{path/to/project_directory}} -D {{CMAKE_BUILD_TYPE=Release}}`
`cmake {{path/to/project_directory}} -D CMAKE_BUILD_TYPE=Release`
- Generate a build recipe using `generator_name` as the underlying build system:
`cmake -G {{generator_name}} {{path/to/project_directory}}`
- Install the build artifacts using the custom prefix for paths:
- Install the build artifacts using a custom prefix for paths:
`cmake --install {{path/to/build_directory}} --strip --prefix {{path/to/directory}}`
@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
`cmake --build {{path/to/build_directory}} {{[-t|--target]}} {{target_name}}`
- Display help, obtain a list of generators:
- Display help:
`cmake {{[-h|--help]}}`