[CMake] Module CMakeParseArguments: confusing last paragraph in documentation
Marcel Loose
loose at astron.nl
Tue Feb 24 12:01:25 EST 2015
I guess that would imply that "not" is missing twice,
[...] would not be empty [...]
and
[...] would not be set to TRUE [...].
Marcel.
On 24/02/15 12:31, Petr Kmoch wrote:
> My guess is there's a "not" missing between "would" and "result in
> MY_INSTALL_DESTINATION set to"
>
> Petr
>
> On Tue, Feb 24, 2015 at 12:05 PM, Marcel Loose <loose at astron.nl
> <mailto:loose at astron.nl>> wrote:
>
> 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.
>
>
> --
>
> Powered by www.kitware.com <http://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/20150224/7cb65932/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/7cb65932/attachment.vcf>
More information about the CMake
mailing list