MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0016016 | CMake | Modules | public | 2016-03-13 12:10 | 2016-06-10 14:31 |
| Reporter | Mario Lang | ||||
| Assigned To | Roger Leigh | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | CMake 3.5 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0016016: FindBoost.cmake has no support for OPTIONAL_COMPONENTS | ||||
| Description | 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 [^] | ||||
| Steps To Reproduce | find_package(Boost REQUIRED COMPONENTS filesystem OPTIONAL_COMPONENTS not_published_yet) | ||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/5643/FindBoost.patch | ||||
| 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 | ||
| Notes | |||||
|
|
|||||
|
|
||||