MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0015717 | CMake | Modules | public | 2015-08-28 12:00 | 2016-06-10 14:31 |
| Reporter | Orion Poplawski | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | Linux | OS | Fedora | OS Version | 22 |
| Product Version | CMake 3.3.1 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0015717: If first FindBoost component is mpi, it cannot find other components | ||||
| Description | FindBoost assumes that the first component found is where all components will be found: macro(_Boost_FIND_LIBRARY var build_type) find_library(${var} ${ARGN}) if(${var}) # If this is the first library found then save Boost_LIBRARY_DIR_[RELEASE,DEBUG]. if(NOT Boost_LIBRARY_DIR_${build_type}) get_filename_component(_dir "${${var}}" PATH) set(Boost_LIBRARY_DIR_${build_type} "${_dir}" CACHE PATH "Boost library directory ${build_type}" FORCE) endif() This breaks on Fedora if the first component is mpi, mpi_python, or graph_parallel because these are located in the mpi specific location (e.g. /usr/lib64/mpich/lib) while the others are in the regular location. See also https://bugzilla.redhat.com/show_bug.cgi?id=1257899 [^] | ||||
| Steps To Reproduce | On Fedora, install boost-mpich-devel and mpich-devel module load mpi/mpich-x86_64 CMakeLists.txt: cmake_minimum_required(VERSION 3.0) set(BOOST_MIN_VERSION 1.41) FIND_PACKAGE(MPI) FIND_PACKAGE(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS mpi serialization) | ||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2015-08-28 12:00 | Orion Poplawski | New Issue | |||
| 2016-06-10 14:29 | Kitware Robot | Note Added: 0042830 | |||
| 2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
| 2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||