[cfe-dev] Fwd: CMake packages and exported targets
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.
---------- 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
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:
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev