[CMake] what options

Roger Leigh rleigh at codelibre.net
Sun Dec 13 14:56:19 EST 2015


On 13/12/2015 19:44, Owen Hogarth II wrote:
> If you have a cmake project, what's the way to see what type of
> configuration options are available?
>
> For example I know that I can pass -DCMAKE_PREFIX_PATH the set where the
> project will be installed.
>
> Sometimes project creators add other things, such as building static or
> share libraries, SSE, NEON or other flags like those.
>
> Is there a way to have cmake show all of those that the current project
> has exposed?

cmake -L[A][H] .

Lists the cache variables to set, optionally including advanced options 
and help text.

See "List non-advanced cached variables" in 
https://cmake.org/cmake/help/v3.4/manual/cmake.1.html

These are also shown with cmake-gui, which lists them in the user interface.


Regards,
Roger


More information about the CMake mailing list