[CMake] what options

Owen Hogarth II gurenchan at gmail.com
Sun Dec 13 15:20:54 EST 2015


wow, that's excellent cmake -LAH lead me to the variable that I was looking
for.

Thank you very much Roger!

On Mon, Dec 14, 2015 at 3:56 AM, Roger Leigh <rleigh at codelibre.net> wrote:

> 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
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151214/f25ba730/attachment.html>


More information about the CMake mailing list