<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello List,<div><br></div><div>Boost 1.70.0 was just released and I'm integrating it into our projects. I notice FindBoost doesn't do the trick on Windows (MSVC141) anymore, on Linux / G++ it works fine. Here's what I do:</div><div><br></div><div><div>set(Boost_USE_STATIC_LIBS           ON) </div><div>set(Boost_USE_MULTITHREADED         ON)</div><div>set(Boost_USE_STATIC_RUNTIME       OFF)</div><div>set(Boost_USE_DEBUG_LIBS           OFF) </div><div>set(Boost_USE_DEBUG_RUNTIME        OFF) </div></div><div><br></div><div><div>set(BOOST_INCLUDEDIR "${BOOST_ROOT}/include")</div><div>set(BOOST_LIBRARYDIR "${BOOST_ROOT}/lib")</div></div><div><br></div><div><div>find_package(Boost REQUIRED</div><div><span style="white-space:pre">  </span>COMPONENTS</div><div><span style="white-space:pre">    </span>system</div><div><span style="white-space:pre">        </span>filesystem </div><div><span style="white-space:pre">  </span>random </div><div><span style="white-space:pre">      </span>chrono</div><div><span style="white-space:pre">        </span>log</div><div><span style="white-space:pre">   </span>date_time </div><div><span style="white-space:pre">   </span>regex</div><div><span style="white-space:pre"> </span>thread</div><div><span style="white-space:pre">        </span>fiber</div><div><span style="white-space:pre"> </span>exception</div><div><span style="white-space:pre">     </span>program_options </div><div><span style="white-space:pre">     </span>unit_test_framework </div><div>)</div></div><div><br></div><div>It complains:</div><div><span style="color:rgb(255,0,0)">Could not find the following static Boost libraries:<br><br>          boost_system<br>          boost_log<br>          boost_unit_test_framework<br><br>  Some (but not all) of the required Boost libraries were found.  You may<br>  need to install these additional Boost libraries.  Alternatively, set<br>  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT<br>  to the location of Boost.</span><br></div><div><br></div><div>Previous Boost versions worked. The libs are present as always and the same code works fine with 1.69.  </div><div><br></div><div>set(Boost_ADDITIONAL_VERSIONS "1.70.0") doesn't change anything as 1.70.0 appears to be already in the known versions struct in FindBoost. </div><div><br></div><div>I have tested with CMake 3.13.4 and 3.14.1. Both fail.</div><div><br></div><div>I have worked my way through the FindBoost module but can't figure out what causes those 3 libs to appear missing. They do appear in the Variables View, with their correct filenames. Everything seems to be fine but the error stops execution. When I remove those 3 libs from the list, linking against imported targets later breaks.</div><div><br></div><div>Does anybody have the same issue upgrading? Is there a workaround perhaps?</div><div><br></div><div>Cheers,</div><div>Stephan</div></div></div></div></div></div></div></div>