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

* cmake: Add generator flag

* Add help example & generator list
pull/23/head
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
1 changed files with 8 additions and 0 deletions

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`