title: CentOS7 Broken after Boost Upgrade
body: <p>Hi: I use a few static boost libraries to link against for a program I am writing. I use FindBoost.cmake to check boost is installed correctly. Everything was working until I tried to update from Boost 1.53.0 to 1.55.0. My initial install of Boost is the vanilla install from:</p>
  
  <pre><code>yum install boost boost-devel
  </code></pre>
  
  <p>I tried to upgrade to 1.55.0 by first installing from this kind person's repo:</p>
  
  <pre><code>[enetres]
  name = ENETRES REPO for CentOS/RHEL $releasever
  baseurl = http://repo.enetres.net/
  enabled = 0
  protect = 0
  gpgcheck = 0
  </code></pre>
  
  <p>It installed but it didn't have what I needed so I backed it out. That process went:</p>
  
  <pre><code>yum install boost-1.55.0
  yum erase boost-1.55.0
  </code></pre>
  
  <p>I noticed while installing 1.55.0 that it superseded my 1.53.0 install.</p>
  
  <p>I then tried to install using bootstrap with the normal procedures from boost:
  <a href="http://www.boost.org/doc/libs/1_55_0/doc/html/bbv2/installation.html" rel="nofollow noreferrer">http://www.boost.org/doc/libs/1_55_0/doc/html/bbv2/installation.html</a></p>
  
  <p>I installed that in /opt/boost/ and after that did not work either I rm -rf /opt/boost.</p>
  
  <p>Thinking I am back to normal, I reinstalled boost 1.53.0 from yum again but FindBoost.cmake no longer finds boost, <em>even though I see the file paths are correct to the include and library directories</em>.</p>
  
  <p>Here is a sample of the libraries I use and I've confirmed the headers are in /usr/include/boost:</p>
  
  <pre><code>$ locate libboost_system
  /usr/lib64/libboost_system-mt.a
  /usr/lib64/libboost_system-mt.so
  /usr/lib64/libboost_system-mt.so.1.53.0
  /usr/lib64/libboost_system.a
  /usr/lib64/libboost_system.so
  /usr/lib64/libboost_system.so.1.53.0
  </code></pre>
  
  <p>When I run cmake with -DBoost_DEBUG=ON all of the path to the lib and include directories look correct. </p>
  
  <p>Interesting debug output:</p>
  
  <pre><code>$ ./build.sh -DBOOST_LIBRARYDIR=/usr/lib64 -DBoost_DEBUG=ON
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:481 ] 
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:483 ] Boost_USE_MULTITHREADED = TRUE
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:485 ] Boost_USE_STATIC_LIBS = ON
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:487 ] Boost_USE_STATIC_RUNTIME = 
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:489 ] Boost_ADDITIONAL_VERSIONS = 
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:491 ] Boost_NO_SYSTEM_PATHS = 
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:543 ] Declared as CMake or Environmental Variables:
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:545 ]   BOOST_ROOT = 
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:547 ]   BOOST_INCLUDEDIR = 
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:549 ]   BOOST_LIBRARYDIR = /usr/lib64
  ...clip...
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:620 ] Include debugging info:
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:622 ]   _boost_INCLUDE_SEARCH_DIRS = PATHS;C:/boost/include;C:/boost;/sw/local/include
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:624 ]   _boost_PATH_SUFFIXES = ..clip...boost-1_53_0;boost_1_53_0;boost/boost-1_53_0;boost/boost_1_53_0;boost-1_53;boost_1_53;boost/boost-1_53;boost/boost_1_53;...clip...
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:644 ] location of version.hpp: /usr/include/boost/version.hpp
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:668 ] version.hpp reveals boost 1.53.0
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:744 ] guessed _boost_COMPILER = -gcc53
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:754 ] _boost_MULTITHREADED = -mt
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:797 ] _boost_RELEASE_ABI_TAG = -
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:799 ] _boost_DEBUG_ABI_TAG = -d
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:847 ] _boost_LIBRARY_SEARCH_DIRS = **/usr/lib64**;/usr/include/lib;/usr/include/../lib;/usr/include/stage/lib;PATHS;C:/boost/lib;C:/boost;/sw/local/lib
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:957 ] Searching for SYSTEM_LIBRARY_RELEASE: boost_system-gcc53-mt-1_53;boost_system-gcc53-mt;boost_system-mt-1_53;**boost_system-mt**;**boost_system**
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:993 ] Searching for SYSTEM_LIBRARY_DEBUG: boost_system-gcc53-mt-d-1_53;boost_system-gcc53-mt-d;boost_system-mt-d-1_53;boost_system-mt-d;boost_system-mt;boost_system
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:957 ] Searching for FILESYSTEM_LIBRARY_RELEASE: boost_filesystem-gcc53-mt-1_53;boost_filesystem-gcc53-mt;boost_filesystem-mt-1_53;**boost_filesystem-mt;boost_filesystem**
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:993 ] Searching for FILESYSTEM_LIBRARY_DEBUG: boost_filesystem-gcc53-mt-d-1_53;boost_filesystem-gcc53-mt-d;boost_filesystem-mt-d-1_53;boost_filesystem-mt-d;boost_filesystem-mt;boost_filesystem
  -- [ /usr/share/cmake/Modules/FindBoost.cmake:1044 ] Boost_FOUND = 1
  CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1138 (message):
    Unable to find the requested Boost libraries.
  
    Boost version: 1.53.0
  
    Boost include path: /usr/include
  
    Could not find the following static Boost libraries:
  
            boost_system
            boost_filesystem
  
    No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
    directory containing Boost libraries or BOOST_ROOT to the location of
    Boost.
  </code></pre>
  
  <p>As you can see I am setting BOOST_LIBRARYDIR=/usr/lib64.</p>
  
  <p>Any help is greatly appreciated.</p>