[cmake-developers] [PATCH 5/5] FindBoost.cmake: Add Boost::boost and Boost::<C> targets and documentation

Brad King brad.king at kitware.com
Tue Jun 24 08:32:32 EDT 2014


On 06/20/2014 01:09 PM, Philipp Möller wrote:
> +#   Boost::boost                  - interface target containing the include
> +#                                   directory

Nice.

> +      if(Boost_USE_STATIC_LIBS)
> +        add_library(Boost::${COMPONENT} STATIC IMPORTED)
> +      else()
> +        add_library(Boost::${COMPONENT} SHARED IMPORTED)
> +      endif()

IIRC, Boost_USE_STATIC_LIBS asks for static libraries, but when it is
OFF we might still get static libraries.  Therefore the else() case
still needs to mark it as UNKNOWN.

Thanks,
-Brad




More information about the cmake-developers mailing list