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

Alexander Neundorf neundorf at kde.org
Thu Jun 16 16:15:26 EDT 2011


On Thursday 09 June 2011, Brad King wrote:
> On 6/9/2011 8:50 AM, Alexander Neundorf wrote:
...
> > I think this can be handled.
> > find_package() should error out in this case, because Bar was required
> > but it was disabled.
> > Maybe this option to disable a find_package() could even be provided for
> > all find_package() calls, and for each REQUIRED one it will cause an
> > error. This would create a bunch of unusable options, but would be very
> > consistent ;-)
> 
> Okay.  However, the option does not need to be "provided" as a
> gui-settable value for packagers to be able to disable things from build
> scripts.  The command could honor the value if it is present but not
> advertise it.

I'll push a branch to the stage once 2.8.5 is released. Or can I do that 
earlier ?

Alex



More information about the cmake-developers mailing list