title: CMake cannot find boost_program_options on Debian
body: <p>I need Boost and some component libraries, including program_options, but CMake's <code>FIND_PACKAGE</code> command fails on Debian due to library version naming. How can I force it to find the <code>program_options</code> library in the cleanest way possible?</p>
  
  <pre><code># CMakeLists.txt
  SET( Boost_USE_STATIC_LIBS FALSE )
  SET( Boost_USE_MULTITHREADED FALSE )
  FIND_PACKAGE( Boost COMPONENTS program_options system thread REQUIRED)
  </code></pre>
  
  <p>This results in the following:</p>
  
  <pre><code>Unable to find the requested Boost libraries.
  
  Boost version: 1.54.0
  
  Boost include path: /usr/include
  
  The following Boost libraries could not be found:
  
          boost_program_options
  </code></pre>
  
  <p>Examining my boost libraries:</p>
  
  <pre><code>$ ls -F /usr/lib | grep boost
  libboost_program_options.so.1.49.0
  libboost_program_options.so.1.54.0
  libboost_system.a
  libboost_system.so@
  libboost_system.so.1.54.0
  libboost_thread.a
  libboost_thread.so@
  libboost_thread.so.1.49.0
  libboost_thread.so.1.54.0
  </code></pre>
  
  <p>Notice that <code>program_options</code> is the only one without an <strong>unversioned</strong> name (the other libraries provide links (denoted by the <code>@</code> above) e.g. <code>libboost_system.so -&gt; libboost_system.so.1.54.0</code>). As far as I can tell, Debian 7.2 does not provide a package that creates such a link, and therefore causes <code>program_options</code> not to be found. What can I do that doesn't include manually making the link (I cannot expect others using my package to be able to do that).</p>
  
  <pre><code>$ cmake -DBoost_DEBUG=ON
  -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:961 ] Searching for PROGRAM_OPTIONS_LIBRARY_RELEASE: boost_program_options-gcc47-1_54;boost_program_options-gcc47;boost_program_options-1_54;boost_program_options;boost_program_options
  -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:993 ] Searching for PROGRAM_OPTIONS_LIBRARY_DEBUG: boost_program_options-gcc47-d-1_54;boost_program_options-gcc47-d;boost_program_options-d-1_54;boost_program_options-d;boost_program_options;boost_program_options
  -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:961 ] Searching for SYSTEM_LIBRARY_RELEASE: boost_system-gcc47-1_54;boost_system-gcc47;boost_system-1_54;boost_system;boost_system
  -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:993 ] Searching for SYSTEM_LIBRARY_DEBUG: boost_system-gcc47-d-1_54;boost_system-gcc47-d;boost_system-d-1_54;boost_system-d;boost_system;boost_system
  -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:961 ] Searching for THREAD_LIBRARY_RELEASE: boost_thread-gcc47-1_54;boost_thread-gcc47;boost_thread-1_54;boost_thread;boost_thread
  -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:993 ] Searching for THREAD_LIBRARY_DEBUG: boost_thread-gcc47-d-1_54;boost_thread-gcc47-d;boost_thread-d-1_54;boost_thread-d;boost_thread;boost_thread
  -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:1107 ] Boost_FOUND = FALSE
  </code></pre>