Description of problem: The CMake-related files delivered along with the boost141-devel sub-package specify wrong paths. More specifically, %{_libdir}/boost141/BoostConfig.cmake contains: -------- set(Boost_VERSION "1.41.0") set(Boost_INCLUDE_DIRS "/usr/include") set(Boost_INCLUDE_DIR "/usr/include" CACHE FILEPATH "Boost include directory") set(Boost_LIBRARY_DIRS "/usr/lib") # # Include the imported targets # include("/usr/lib/boost/Boost.cmake") -------- However, with Boost141, the include directory is /usr/include/boost141 and the libraries are located in %{_libdir}/boost141. Version-Release number of selected component (if applicable): boost141 How reproducible: Always Steps to Reproduce: 1. 2. 3. Actual results: Expected results: %{_libdir}/boost141/BoostConfig.cmake should contain: -------- set(Boost_VERSION "1.41.0") set(Boost_INCLUDE_DIRS "/usr/include/boost141") set(Boost_INCLUDE_DIR "/usr/include/boost141" CACHE FILEPATH "Boost include directory") set(Boost_LIBRARY_DIRS "${LIBDIR}/boost141") # # Include the imported targets # include("${LIBDIR}/boost141/Boost.cmake") -------- where LIBDIR=/usr/lib or /usr/lib64, depending on the architecture. Additional info: I can help with a patch if so needed.
The CMake-related files delivered by the boost141-devel sub-package are useless, as the standard FindBoost.cmake helper file does the job when appropriate CMake variables are passed along the build set up command (see bug #768656). By the way, those CMake-related files could be safely removed at the RPM building time (within the boost141 specification file).