1
0
Fork 0
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:
Managor 2025-05-08 06:04:45 +03:00 committed by GitHub
parent 7df3d64c6f
commit 0ca7f314bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}}`