View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015717CMakeModulespublic2015-08-28 12:002016-06-10 14:31
ReporterOrion Poplawski 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformLinuxOSFedoraOS Version22
Product VersionCMake 3.3.1 
Target VersionFixed in Version 
Summary0015717: If first FindBoost component is mpi, it cannot find other components
DescriptionFindBoost 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 ReproduceOn 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)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042830)
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
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


Copyright © 2000 - 2018 MantisBT Team