CMake command line option documentation

Cmake documentation has sensibly improved in the meantime, but -H<directory> and -B keep being hidden, probably for good reasons (they shouldn't be used outside of CMake development context).

-H<directory> and -B are both explained here.

For cmake -E, options are documented in this section.


Definitely not. You do have to look at the source code of CMake.

The online docs are good, but there are some private-ish implementation details that we intentionally leave out of the official docs. Command-line stuff we use from generated projects and makefiles are some of those details.

Online docs here:

  • http://cmake.org/cmake/help/v2.8.8/cmake.html

Documented command line options here:

  • http://cmake.org/cmake/help/v2.8.8/cmake.html#section_Options

Overview page, pointing to other sources of information:

  • http://cmake.org/cmake/help/documentation.html

Probably not. You might have to look at the source code of CMake.