MantisBT - CMake
View Issue Details
0013195CMakeModulespublic2012-05-05 15:462012-08-09 19:34
john5342 
Alex Neundorf 
lowminoralways
closedfixed 
Fedora Linux16
CMake 2.8.8 
CMake 2.8.9CMake 2.8.9 
0013195: Boost gets shown as both found and not found by feature_summary
If i use find_package to search for Boost then feature_summary reports it as both present and not. BZip2 for instance works as expected.
== CMakeLists.txt ==
cmake_minimum_required(VERSION 2.8)
project(boost_feature_summary_fail CXX)
find_package(Boost)
include(FeatureSummary)
feature_summary(WHAT ALL)
====================

== Output ==========
$ cmake ..
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/lib64/ccache/gcc
-- Check for working C compiler: /usr/lib64/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.47.0
--

-- The following OPTIONAL packages have been found:

 * Boost

-- The following OPTIONAL packages have not been found:

 * Boost
-- Configuring done
-- Generating done
-- Build files have been written to: /home/john/projects/boost_feature_summary_fail/build
====================
This is using the builtin FindBoost.cmake and it's fallback mode. There is no Config style cmake file for FindBoost to find.
No tags attached.
Issue History
2012-05-05 15:46john5342New Issue
2012-05-05 15:53john5342Note Added: 0029402
2012-05-06 05:46Alex NeundorfAssigned To => Alex Neundorf
2012-05-06 05:46Alex NeundorfStatusnew => assigned
2012-05-06 10:36Alex NeundorfNote Added: 0029405
2012-05-06 10:36Alex NeundorfStatusassigned => closed
2012-05-06 10:36Alex NeundorfResolutionopen => fixed
2012-08-09 19:34David ColeFixed in Version => CMake 2.8.9
2012-08-09 19:34David ColeTarget Version => CMake 2.8.9

Notes
(0029402)
john5342   
2012-05-05 15:53   
Upon further inspection it appears that the call "find_package(Boost QUIET NO_MODULE)" (in FindBoost.cmake) is what's causing this. If i comment it out then i get the correct output below. To my understanding though failed find_package calls are supposed to be ignored with QUIET.

== Output after commenting out find_package =========
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/lib64/ccache/gcc
-- Check for working C compiler: /usr/lib64/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.47.0
--

-- The following OPTIONAL packages have been found:

 * Boost
-- Configuring done
-- Generating done
-- Build files have been written to: /home/john/projects/boost_feature_summary_fail/build
================================================
(0029405)
Alex Neundorf   
2012-05-06 10:36   
Thanks for reporting.
It is fixed in the FixMultipleResultsInFeatureSummary branch and will be in 2.8.9.