[cmake-developers] handling components in Find****

Brad King brad.king at kitware.com
Thu Jun 23 10:31:12 EDT 2016


On 06/22/2016 08:11 AM, Farbos a wrote:
> I am trying to write a Find module with components and I am not sure
> of how it should be written.
> I attached the find module, Could someone tell me if I did it well?

It looks okay to me from a quick glance.

Side note: For variables private to the module I suggest using a
prefix like `_IlmBase_` to make it clear to readers that they are
not for public use.

Are there any dependencies between components?  If so then things
need to be more complicated, especially to provide the imported
targets.  See FindBoost for an example.

-Brad



More information about the cmake-developers mailing list