[cmake-developers] Adding argument "OPTIONAL" to find_package() and add_subdirectory

Rolf Eike Beer eike at sf-mail.de
Thu Jun 9 01:54:31 EDT 2011


Nicolas Desprès wrote:

> I have to confess that I never called find_package() without REQUIRED,
> and I can't think about any use case right now.

The most simple one is probably the system-or-bundled one: check if the system 
has a good version of some package, use the one bundled with the sources 
otherwise.

Or just: build without some feature if a package is not availble.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20110609/ea850650/attachment.sig>


More information about the cmake-developers mailing list