View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013195CMakeModulespublic2012-05-05 15:462012-08-09 19:34
Reporterjohn5342 
Assigned ToAlex Neundorf 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSFedora LinuxOS Version16
Product VersionCMake 2.8.8 
Target VersionCMake 2.8.9Fixed in VersionCMake 2.8.9 
Summary0013195: Boost gets shown as both found and not found by feature_summary
DescriptionIf i use find_package to search for Boost then feature_summary reports it as both present and not. BZip2 for instance works as expected.
Steps To Reproduce== 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
====================
Additional InformationThis is using the builtin FindBoost.cmake and it's fallback mode. There is no Config style cmake file for FindBoost to find.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0029402)
john5342 (reporter)
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 (developer)
2012-05-06 10:36

Thanks for reporting.
It is fixed in the FixMultipleResultsInFeatureSummary branch and will be in 2.8.9.

 Issue History
Date Modified Username Field Change
2012-05-05 15:46 john5342 New Issue
2012-05-05 15:53 john5342 Note Added: 0029402
2012-05-06 05:46 Alex Neundorf Assigned To => Alex Neundorf
2012-05-06 05:46 Alex Neundorf Status new => assigned
2012-05-06 10:36 Alex Neundorf Note Added: 0029405
2012-05-06 10:36 Alex Neundorf Status assigned => closed
2012-05-06 10:36 Alex Neundorf Resolution open => fixed
2012-08-09 19:34 David Cole Fixed in Version => CMake 2.8.9
2012-08-09 19:34 David Cole Target Version => CMake 2.8.9


Copyright © 2000 - 2018 MantisBT Team