[cmake-developers] IMPORTED targets for some Find modules
Stephen Kelly
steveire at gmail.com
Wed Jun 25 09:47:41 EDT 2014
Philipp Moeller wrote:
> Nils Gladitz <nilsgladitz at gmail.com>
> writes:
>> I would like that very much as well.
>
> I'll look into doing that. I think populating
> INTERFACE_COMPILE_DEFINTIONS with BOOST_${LIBRARY_NAME}_NO_LIB seems the
> obvious choice.
Yes.
> In addition I can provide a Boost::disable_autolinking
> target to disable it for the complete library.
Also consider a CMake variable to disable the addition of the defines (by
not linking the interface targets).
set(Boost_ENABLE_AUTOLINKING 1)
find_package(Boost)
Thanks,
Steve.
More information about the cmake-developers
mailing list