[cmake-developers] [PATCH 0/5] IMPORTED targets for some Find modules
Brad King
brad.king at kitware.com
Tue Jun 24 08:32:22 EDT 2014
On 06/20/2014 05:00 PM, Philipp Möller wrote:
> To simplify exporting targets I added IMPORTED targets to some of the
> Find modules.
Thanks! I've applied the first three:
FindZLIB: Add imported target and documentation
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5a7ff421
FindGLEW: Add imported target and documentation
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3d82a223
FindX11: fix documentation formatting error
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c90c7fca
I will respond to the individual patch messages for the other two.
> Unfortunately targets behave differently than variables and can give
> different results when multiple find_package calls with different
> hints or options are made.
That is not really supported anyway because we have only one
CMakeCache.txt so there is only one FOO_LIBRARY variable.
A project can achieve it with careful handling and typically
by keeping the find_package calls in separate directories
where imported targets are scoped apart anyway.
-Brad
More information about the cmake-developers
mailing list