MantisBT - CMake
View Issue Details
0016016CMakeModulespublic2016-03-13 12:102016-06-10 14:31
Mario Lang 
Roger Leigh 
normalminoralways
closedmoved 
CMake 3.5 
 
0016016: FindBoost.cmake has no support for OPTIONAL_COMPONENTS
FindBoot.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 [^]
find_package(Boost REQUIRED COMPONENTS filesystem OPTIONAL_COMPONENTS not_published_yet)
No tags attached.
patch FindBoost.patch (1,793) 2016-03-13 12:10
https://public.kitware.com/Bug/file/5643/FindBoost.patch
Issue History
2016-03-13 12:10Mario LangNew Issue
2016-03-13 12:10Mario LangFile Added: FindBoost.patch
2016-03-14 10:13Brad KingAssigned To => Roger Leigh
2016-03-14 10:13Brad KingStatusnew => assigned
2016-06-10 14:29Kitware RobotNote Added: 0042964
2016-06-10 14:29Kitware RobotStatusassigned => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042964)
Kitware Robot   
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.