[cmake-developers] (naming-)convention for ALIAS and INTERFACE targets
Daniel Pfeifer
daniel at pfeifer-mail.de
Fri Sep 13 17:46:47 EDT 2013
Hi Steve and all,
we restarted the CMake-ification of molularized Boost with modern
CMake features here: https://github.com/boost-cmake/boost-cmake
We want to be able to build all Boost libraries together, but also
each library on its own.
Am I correct that in both cases we use the :: name in tll()?
The :: target name is an ALIAS in the first use case and an imported
INTERFACE in the second, right?
I assume that, for the INTERFACE case, the interfaces need to be
imported with find_package(). How can we make sure that calling
find_package() does not get in the way when Boost is built as a whole?
Boost also provides some tools for building documentation. To simplify
using these tools with CMake, we want to make them provide also some
CMake modules. Note that we don't want to put these modules in a
common location, but let each Boost tool bring its own module.
Since those modules will be used by Boost itself, they should be
usable from both the install dir and the source dir.
What would be better?
1) Let Boostbook provide a module UseBoostbook.cmake
2) Put all Boostbook related functions into FindBoostbook.cmake
cheers, Daniel
More information about the cmake-developers
mailing list