The following issue has been SUBMITTED. ====================================================================== https://public.kitware.com/Bug/view.php?id=16016 ====================================================================== Reported By: Mario Lang Assigned To: ====================================================================== Project: CMake Issue ID: 16016 Category: Modules Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2016-03-13 12:10 EDT Last Modified: 2016-03-13 12:10 EDT ====================================================================== Summary: 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) ====================================================================== 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 ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
