1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 09:55:23 +02:00

cmake: add generator flag, help example (#10087)

* cmake: Add generator flag

* Add help example & generator list
This commit is contained in:
David Peet 2023-04-21 02:08:56 -04:00 committed by GitHub
parent deeffd9df6
commit 4eafd9978d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,10 @@
`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}}`
@ -26,3 +30,7 @@
- Run a custom build target:
`cmake --build {{path/to/build_directory}} --target {{target_name}}`
- Display help, obtain a list of generators:
`cmake --help`