[cmake-developers] [PATCH] FindBoost: Add imported targets
Brad King
brad.king at kitware.com
Mon Nov 16 09:39:26 EST 2015
Hi Roger,
Thanks for working on this. Please read through this mailing list
thread:
IMPORTED targets for some Find modules
https://cmake.org/pipermail/cmake-developers/2014-June/010694.html
There is some discussion there about similar FindBoost changes.
Also please take a look at these tests:
$ ls -d Tests/Find*
such as FindGSL, FindOpenSSL, and FindThreads to see our current
convention for adding tests for modules. See the conditions in
Tests/CMakeLists.txt for adding most of them. Please add similar
tests for FindBoost, at least for the new imported targets.
On 11/16/2015 09:26 AM, Florent Castelli wrote:
> But one there’s one thing that comes to mind. Some compiled libraries
> have dependencies on other compiled libraries.
> Don’t you think it would make sense to teach FindBoost about those
> so we link everything properly?
>
> And also maybe add the native dependencies for some modules that
> have one like maybe pthread or openssl.
> Though, this might be hard to get right in a cross platform way.
Please look at adding these. The imported targets should come
with all usage requirements as if they were provided by upstream
Boost. It may be tricky to get right on all platforms but if we
do not do it then application code will have to do it instead.
Thanks,
-Brad
More information about the cmake-developers
mailing list