[CMake] Module CMakeParseArguments: confusing last paragraph in documentation

Marcel Loose loose at astron.nl
Tue Feb 24 06:05:36 EST 2015


Hi all,

Several times I've read the last paragraph of the documentation of
module CMakeParseArguments, but I can't get my head around it.

    Keywords terminate lists of values, e.g. if directly after a
    one_value_keyword another recognized keyword follows, this is
    interpreted as the beginning of the new option. E.g.
    my_install(TARGETS foo DESTINATION OPTIONAL) would result in
    MY_INSTALL_DESTINATION set to “OPTIONAL”, but MY_INSTALL_DESTINATION
    would be empty and MY_INSTALL_OPTIONAL would be set to TRUE therefor.

Huh? [...] MY_INSTALL_DESTINATION will be set to "OPTIONAL", but would
be empty [...] ???

Reading the first sentence of this paragraph, I concluded that
MY_INSTALL_DESTINATION will be empty, not would be.

Best regards,
Marcel Loose.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150224/d0a5ce61/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: loose.vcf
Type: text/x-vcard
Size: 292 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150224/d0a5ce61/attachment.vcf>


More information about the CMake mailing list