title: CMake - Could not find boost libraries
body: <p>I'm trying to generate the VS project for a cpp program but CMake is failing with the errors:</p>
  
  <blockquote>
    <p>CMake Error at
    C:/Users/fabio.rezende/Documents/cmake-3.13.3-win64-x64/share/cmake-3.13/Modules/FindBoost.cmake:2100
    (message):   Unable to find the requested Boost libraries.</p>
    
    <p>Boost version: 1.67.0</p>
    
    <p>Boost include path: C:/boost_1_67_0/include/boost-1_67</p>
    
    <p>Could not find the following Boost libraries:</p>
  
  <pre><code>      boost_program_options
        boost_system
  </code></pre>
    
    <p>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. Call Stack (most recent call first):<br>
    CMakeLists.txt:9 (find_package)</p>
  </blockquote>
  
  <p><strong>I've already tried the solutions proposed</strong> <a href="https://stackoverflow.com/a/20656791/2414842">here</a> and <a href="https://stackoverflow.com/a/54386859/2414842">here</a> and none worked so now I'm literally clueless of what may be happening here. I've downloaded boost 1.67.0 from the <a href="https://www.boost.org/users/history/version_1_67_0.html" rel="nofollow noreferrer">official website</a> compiled (with bootstrap.bat + b2 commands) installed with bjam as in the second link was proposed and placed it under <code>C:\</code>. The Cmake file is:</p>
  
  <pre><code>cmake_minimum_required(VERSION 3.13)
  project(BlockChainChat VERSION 1.0.0) 
  
  set (CMAKE_CXX_STANDARD 17)
  
  set(BOOST_ROOT "C:\\boost_1_67_0")
  set(BOOST_LIBRARYDIR "${BOOST_ROOT}\\stage\\lib")
  
  find_package(Boost 1.67.0 COMPONENTS program_options REQUIRED system)
  include_directories( ${Boost_INCLUDE_DIR} )
  
  add_subdirectory(util)
  
  add_executable(BlockChainChat main.cpp)
  
  target_link_libraries(BlockChainChat LINK_PUBLIC ${Boost_LIBRARIES} )
  target_link_libraries(BlockChainChat PRIVATE util)
  </code></pre>
  
  <p>Note: without the SET BOOST_ROOT and BOOST_LIBRARYDIR I can easily build it under a linux machine.</p>