title: Why does CMake 3.16 looks for boost_program_options<version> instead of libboost_program_options<version>?
body: <p>I'm using CMake 3.16 on Windows to generate a visual studio 2019 solution that depends upon boost::program_options. <a href="https://github.com/trprice/EveSDEImporter" rel="nofollow noreferrer">This</a> is the link to the code on Github. I have built <a href="https://www.boost.org/users/history/version_1_72_0.html" rel="nofollow noreferrer">Boost 1.72</a> with the following command:</p>
  
  <p><code>.\b2 install --reconfigure --prefix=F:\dev_programs\boost --build-type=complete</code></p>
  
  <p>The libraries that were generated are as follows (limited to the program_options output because that's what CMake will be looking for):</p>
  
  <p><a href="https://i.stack.imgur.com/2goFr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2goFr.png" alt="enter image description here"></a></p>
  
  <p>The find_package command in the CMakeLists.txt file is as follows:</p>
  
  <p><code>find_package(Boost 1.72.0 COMPONENTS program_options REQUIRED)</code></p>
  
  <p>As seen in the output below, when cmake looks for the program_options library it looks for <code>boost_program_options-vc142-mt-x64-1_72</code> instead of <code>libboost_program_options-vc142-mt-x64-1_72.lib</code> that was generated by the boost build. Copying the genereated libraries and removing the <code>lib</code> prefix makes this works successfully. It doesn't, however, feel like I should have to do that.</p>
  
  <p>I have not found any answer for why this happens. Does anybody else have any ideas?</p>
  
  <pre><code>[ F:/dev_programs/cmake/share/cmake-3.16/Modules/FindBoost.cmake:2044 ] Searching for PROGRAM_OPTIONS_LIBRARY_RELEASE: boost_program_options-vc142-mt-x64-1_72;boost_program_options-vc142-mt-x64;boost_program_options-vc142-mt;boost_program_options-vc141-mt-x64-1_72;boost_program_options-vc141-mt-x64;boost_program_options-vc141-mt;boost_program_options-vc140-mt-x64-1_72;boost_program_options-vc140-mt-x64;boost_program_options-vc140-mt;boost_program_options-mt-x64-1_72;boost_program_options-mt-x64;boost_program_options-mt;boost_program_options-mt;boost_program_options
  [ F:/dev_programs/cmake/share/cmake-3.16/Modules/FindBoost.cmake:649 ] Boost_LIBRARY_DIR_RELEASE = "F:\dev_programs\boost/lib"
  [ F:/dev_programs/cmake/share/cmake-3.16/Modules/FindBoost.cmake:651 ] _boost_LIBRARY_SEARCH_DIRS_RELEASE = "F:\dev_programs\boost/lib;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH"
  [ F:/dev_programs/cmake/share/cmake-3.16/Modules/FindBoost.cmake:2099 ] Searching for PROGRAM_OPTIONS_LIBRARY_DEBUG: boost_program_options-vc142-mt-gd-x64-1_72;boost_program_options-vc142-mt-gd-x64;boost_program_options-vc142-mt-gd;boost_program_options-vc141-mt-gd-x64-1_72;boost_program_options-vc141-mt-gd-x64;boost_program_options-vc141-mt-gd;boost_program_options-vc140-mt-gd-x64-1_72;boost_program_options-vc140-mt-gd-x64;boost_program_options-vc140-mt-gd;boost_program_options-mt-gd-x64-1_72;boost_program_options-mt-gd-x64;boost_program_options-mt-gd;boost_program_options-mt;boost_program_options
  [ F:/dev_programs/cmake/share/cmake-3.16/Modules/FindBoost.cmake:649 ] Boost_LIBRARY_DIR_DEBUG = "F:\dev_programs\boost/lib"
  [ F:/dev_programs/cmake/share/cmake-3.16/Modules/FindBoost.cmake:651 ] _boost_LIBRARY_SEARCH_DIRS_DEBUG = "F:\dev_programs\boost/lib;NO_DEFAULT_PATH;NO_CMAKE_FIND_ROOT_PATH"
  CMake Error at F:/dev_programs/cmake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
    Could NOT find Boost (missing: program_options) (found suitable version
    "1.72.0", minimum required is "1.72.0")
  Call Stack (most recent call first):
    F:/dev_programs/cmake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
    F:/dev_programs/cmake/share/cmake-3.16/Modules/FindBoost.cmake:2165 (find_package_handle_standard_args)
    CMakeLists.txt:23 (find_package)
  </code></pre>