[cmake-developers] CMake command line options -H and -B

Benjamin Eikel cmake at eikel.org
Sun Sep 2 11:03:20 EDT 2012


Hello,

I have a question concerning the command line options "-H" and "-B". The usage 
information says that "-H" shows the help, which is true when "-H" does not 
receive any parameters (see cmDocumentation.cxx:1120ff). But when there is a 
parameter, it sets the source directory (see cmake.cxx:663ff). This is not 
documented when calling "cmake --help" and is somehow ambiguous. Furthermore 
the "-B" option is not documented there. I encountered the options by looking 
at the "rebuild_cache" make target. Are they hidden with intent?

Kind regards
Benjamin



More information about the cmake-developers mailing list