Boost detection failure with CMake 2.8.8
Christophe Giboudeaux
cgiboudeaux at gmx.com
Mon Dec 3 22:41:26 UTC 2012
On Monday 03 December 2012 22:09:35 Alexander Neundorf wrote:
> On Friday 30 November 2012, Christophe Giboudeaux wrote:
> > Hi,
> >
> > We're getting some reports about kdepimlibs and the Boost detection with
> > CMake 2.8.8. The issue cannot be reproduced with 2.8.10.2.
> >
> > CMakeLists.txt:
> >
> > project(test)
> > cmake_minimum_required(VERSION 2.8.8)
> > include(FeatureSummary)
> > set(Boost_MINIMUM_VERSION "1.34.0")
> > find_package(Boost ${Boost_MINIMUM_VERSION} COMPONENTS graph)
> > set_package_properties(Boost PROPERTIES DESCRIPTION "Boost C++ Libraries"
> > URL "http://www.boost.org" TYPE REQUIRED PURPOSE "Boost must include the
> > boost- graph library")
> > feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
> >
> >
> > With CMake 2.8.8:
> > -- Boost version: 1.49.0
> > -- Found the following Boost libraries:
> > -- graph
> >
> > -- The following REQUIRED packages have been found:
> > * Boost (required version >= 1.34.0) , Boost C++ Libraries ,
> >
> > <http://www.boost.org>
> >
> > * Boost must include the boost-graph library
> >
> > -- The following REQUIRED packages have not been found:
> > * Boost (required version >= 1.34.0) , Boost C++ Libraries ,
> >
> > <http://www.boost.org>
> >
> > * Boost must include the boost-graph library
> >
> > CMake Error at
> > /tmp/cmake-2.8.8/share/cmake-2.8/Modules/FeatureSummary.cmake:430
> > (MESSAGE):
> >
> >
> > ----
> > With CMake 2.8.10.2:
> >
> > -- Boost version: 1.49.0
> > -- Found the following Boost libraries:
> > -- graph
> >
> > -- The following REQUIRED packages have been found:
> > * Boost (required version >= 1.34.0) , Boost C++ Libraries ,
> >
> > <http://www.boost.org>
> >
> > Boost must include the boost-graph library
> >
> > ---
> >
> > Now the unexplained part: Boost comes from the official tarball, there's
> > no
> > Config file. However, adding:
> > set(Boost_NO_BOOST_CMAKE TRUE)
> > fixes the boost detection with CMake 2.8.8.
>
> Hmm, above it'S reported both as found and as not-found.
> Can you try also with cmake 2.8.9 ?
> Could it be this patch (from 2.8.9) ?
> http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=accd0428f4f76feef51221176
> 99b196d04dca84a
Nope, the result is the same after applying this change to the cmake 2.8.8
FindBoost.cmake.
The issue is also fixed in 2.8.9.
After bissecting, 1f8f58a seems to be the commit that fixed it.
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20121203/1abdde28/attachment.sig>
More information about the Kde-buildsystem
mailing list