mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 16:13:31 +02:00
cmake: reorder examples (#16400)
This commit is contained in:
parent
7df3d64c6f
commit
0ca7f314bf
1 changed files with 8 additions and 8 deletions
|
@ -7,14 +7,6 @@
|
|||
|
||||
`cmake {{path/to/project_directory}}`
|
||||
|
||||
- Generate a build recipe, with build type set to `Release` with CMake variable:
|
||||
|
||||
`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}}`
|
||||
|
||||
- Use a generated recipe in a given directory to build artifacts:
|
||||
|
||||
`cmake --build {{path/to/build_directory}}`
|
||||
|
@ -23,6 +15,14 @@
|
|||
|
||||
`cmake --install {{path/to/build_directory}} --strip`
|
||||
|
||||
- Generate a build recipe, with build type set to `Release` with CMake variable:
|
||||
|
||||
`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:
|
||||
|
||||
`cmake --install {{path/to/build_directory}} --strip --prefix {{path/to/directory}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue