https://cmake.org/cmake/help/latest/manual/cmake.1.html#build-a-project
Looking at the cmake build documentation I’m a bit confused.
--target <tgt>..., -t <tgt>...
Build <tgt> instead of the default target. Multiple targets may be given, separated by spaces.
What is the default target? Can I query for it? Can we add extra docs?
fenrir
(Jakub Zakrzewski)
December 11, 2020, 6:43am
2
If I’m not mistaken, it’s simply “all”.
For Makefile and Ninja generators at least, yes it is all
, but for other generators it is called ALL_BUILD
(not sure if any use ALL
off the top of my head).
@craig.scott where is this documented by the way?
I swear I read this somewhere but I can’t find it in the cmake docs for the life of me.
A quick grep shows that it is mentioned at least in the following places: