[CMake] Warnings with newer versions of Boost imported targets

Sylvain Joubert joubert.sy at gmail.com
Thu Nov 10 04:57:00 EST 2016


Hi,

I'm using CMake 3.6.3 (so up-to-date version at this point).
After updating my Boost libraries to the newest version (1.62 just landed
on my Debian testing) I get a bunch of warnings:
"Imported targets not available for Boost version 106200"
There seems to be a fallback behavior working fine, so I'm not blocked but
these warnings are very annoying.

I see that support for version 1.62 has been added in CMake with 9bb8ac8
and a997cac and will be available in CMake 3.7

My questions would be:
1- Does this mean that CMake can't use imported targets on Boost versions
it doesn't know explicitly? (the fallback behavior does not seem to have
this problem)
2- Does that mean I can't update my boost version without also updating my
CMake version? (which for this specific use case cannot be done until the
next CMake version)
3- Is there a way to fix/disable these warnings in a proper way?

Thanks,
Sylvain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20161110/40bd38dd/attachment.html>


More information about the CMake mailing list