mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-20 12:50:37 +00:00
Update cheatsheets
This commit is contained in:
@@ -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]}}`
|
||||
|
||||
Reference in New Issue
Block a user