<div dir="ltr">I&#39;ve created a &quot;find&quot; module for a library (following the example for zlib) which I use in a standalone project.  A second project has it as a subdirectory, but the second project also uses the same find module for its own purposes.  I&#39;m confused about how to best ensure that the &quot;find&quot; doesn&#39;t get invoked twice; the top level project invokes it, setting various variables that the lower level project uses without redoing the find.<div>
<br></div><div style>What are the best practices for nesting projects like this?  I was thinking to change the find module to define an imported library target (instead of a handful of variables like FindZLIB does) and then protecting the find inside a IF( TARGET ... ) block?  Comments?</div>
<div style><br></div><div style>Thanks,</div><div style>  Neil</div></div>