title: CMake Error Could NOT find Boost (using Visual Studio)
body: <p>In my <code>CMakeLists.txt</code> file, I have this:</p>
  
  <pre><code># Locate Boost date_time library
  set(PROGRAM_FILES "Program Files")
  set(Boost_INCLUDE_DIR C:/${PROGRAM_FILES})
  set(Boost_USE_STATIC_LIBS ON)
  set(Boost_USE_MULTITHREADED ON)
  set(Boost_USE_STATIC_RUNTIME OFF)
  find_package(Boost 1.58 REQUIRED COMPONENTS date_time)
  </code></pre>
  
  <p>I have my boost directory located at <code>C:\Program Files\boost</code> and in that directory there is a <code>date_time</code> directory and a <code>date_time.hpp</code> header file.  </p>
  
  <p>My error:</p>
  
  <pre><code>Error       
  CMake Error at 
  C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  
    Could NOT find Boost (missing: date_time) (found suitable version "1.72.0",
    minimum required is "1.58")   C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake    137
  </code></pre>