whenever I use bleeding-edge boost, I try to grab the latest FindBoost: https://github.com/Kitware/CMake/commits/master/Modules/FindBoost.cmake
..in particular, you probably want https://github.com/Kitware/CMake/commit/266808c4130a0b40aed236381707462a9368a1eb#diff-555801259d7df67368f7deab1f9deacd which doesn’t look like it’s been merged to release yet. -Mike > On Apr 12, 2019, at 7:31 AM, Stephan Menzel <stephan.men...@gmail.com> wrote: > > Hello List, > > 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: > > set(Boost_USE_STATIC_LIBS ON) > set(Boost_USE_MULTITHREADED ON) > set(Boost_USE_STATIC_RUNTIME OFF) > set(Boost_USE_DEBUG_LIBS OFF) > set(Boost_USE_DEBUG_RUNTIME OFF) > > set(BOOST_INCLUDEDIR "${BOOST_ROOT}/include") > set(BOOST_LIBRARYDIR "${BOOST_ROOT}/lib") > > find_package(Boost REQUIRED > COMPONENTS > system > filesystem > random > chrono > log > date_time > regex > thread > fiber > exception > program_options > unit_test_framework > ) > > It complains: > Could not find the following static Boost libraries: > > boost_system > boost_log > boost_unit_test_framework > > Some (but not all) of the required Boost libraries were found. You may > need to install these additional Boost libraries. Alternatively, set > BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT > to the location of Boost. > > Previous Boost versions worked. The libs are present as always and the same > code works fine with 1.69. > > 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. > > I have tested with CMake 3.13.4 and 3.14.1. Both fail. > > 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. > > Does anybody have the same issue upgrading? Is there a workaround perhaps? > > Cheers, > Stephan > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > https://cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake