[cfe-dev] Fwd: CMake packages and exported targets

Stephen Kelly steveire at gmail.com
Thu Nov 13 01:47:35 PST 2014


I didn't get any response to this. If anyone else is interested in this,
please go ahead and/or ask for more guidance.

Thanks,

---------- Forwarded message ----------
From: Stephen Kelly <steveire at gmail.com>
Date: Sat, Nov 8, 2014 at 12:11 AM
Subject: CMake packages and exported targets
To: reid at kleckner.net



Hello,

I saw your commit r221411 (Make it easier to build against a pre-built
Clang package with CMake, 2014-11-05).

The documentation of the export command:

 http://www.cmake.org/cmake/help/v3.0/command/export.html

contains this paragraph:

"The file created by this command is specific to the build tree and
should never be installed. See the install(EXPORT) command to export
targets from an installation tree."

Consider using that command.

The cmake-packages manual describes how to use the find_dependency macro
to find dependencies. It is a simple macro and can be backported and
used with older CMake if you can't rely on CMake 3.0.

Thanks,

Steve.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141113/06263618/attachment.html>


More information about the cfe-dev mailing list