View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016016CMakeModulespublic2016-03-13 12:102016-06-10 14:31
ReporterMario Lang 
Assigned ToRoger Leigh 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 3.5 
Target VersionFixed in Version 
Summary0016016: FindBoost.cmake has no support for OPTIONAL_COMPONENTS
DescriptionFindBoot.cmake has no support for the OPTIONAL_COMPONENTS keyword of find_package().
If REQUIRED is passed, Boost_FOUND will be false if one of the OPTIONAL_COMPONENTS was not found.
This seems easy to fix, the change boils down to
- if(NOT Boost_${COMPONENT}_FOUND)
+ if(NOT Boost_${COMPONENT}_FOUND AND Boost_FIND_REQUIRED_${component})
which seems simple enough.
Please consider the attached patch.
This is a long standing issue, at least a discussion from 2010 can be found here:
https://cmake.org/pipermail/cmake/2010-August/039042.html [^]
Steps To Reproducefind_package(Boost REQUIRED COMPONENTS filesystem OPTIONAL_COMPONENTS not_published_yet)
TagsNo tags attached.
Attached Filespatch file icon FindBoost.patch [^] (1,793 bytes) 2016-03-13 12:10 [Show Content]

 Relationships

  Notes
(0042964)
Kitware Robot (administrator)
2016-06-10 14:29

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2016-03-13 12:10 Mario Lang New Issue
2016-03-13 12:10 Mario Lang File Added: FindBoost.patch
2016-03-14 10:13 Brad King Assigned To => Roger Leigh
2016-03-14 10:13 Brad King Status new => assigned
2016-06-10 14:29 Kitware Robot Note Added: 0042964
2016-06-10 14:29 Kitware Robot Status assigned => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team