The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15717
======================================================================
Reported By: Orion Poplawski
Assigned To:
======================================================================
Project: CMake
Issue ID: 15717
Category: Modules
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-08-28 12:00 EDT
Last Modified: 2015-08-28 12:00 EDT
======================================================================
Summary: 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)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-08-28 12:00 Orion PoplawskiNew Issue
======================================================================
--
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