Boost detection failure with CMake 2.8.8
Alexander Neundorf
neundorf at kde.org
Mon Dec 3 21:09:35 UTC 2012
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=accd0428f4f76feef5122117699b196d04dca84a
Thanks
Alex
More information about the Kde-buildsystem
mailing list