<div dir="ltr"><div><br></div><div>I didn't get any response to this. If anyone else is interested in this, please go ahead and/or ask for more guidance.</div><div><br></div><div>Thanks,</div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Stephen Kelly</b> <span dir="ltr"><<a href="mailto:steveire@gmail.com">steveire@gmail.com</a>></span><br>Date: Sat, Nov 8, 2014 at 12:11 AM<br>Subject: CMake packages and exported targets<br>To: <a href="mailto:reid@kleckner.net">reid@kleckner.net</a><br><br><br><br>
Hello,<br>
<br>
I saw your commit r221411 (Make it easier to build against a pre-built<br>
Clang package with CMake, 2014-11-05).<br>
<br>
The documentation of the export command:<br>
<br>
 <a href="http://www.cmake.org/cmake/help/v3.0/command/export.html" target="_blank">http://www.cmake.org/cmake/help/v3.0/command/export.html</a><br>
<br>
contains this paragraph:<br>
<br>
"The file created by this command is specific to the build tree and<br>
should never be installed. See the install(EXPORT) command to export<br>
targets from an installation tree."<br>
<br>
Consider using that command.<br>
<br>
The cmake-packages manual describes how to use the find_dependency macro<br>
to find dependencies. It is a simple macro and can be backported and<br>
used with older CMake if you can't rely on CMake 3.0.<br>
<br>
Thanks,<br>
<br>
Steve.<br>
<br>
</div><br></div>