[CMake] Boost 1.70.0 -- FindBoost issues? No linker libraries found

Mateusz Loskot mateusz at loskot.net
Mon Apr 15 19:10:44 EDT 2019


On Tue, 16 Apr 2019 at 01:01, Andrew Maclean <andrew.amaclean at gmail.com> wrote:
>
>  In build.ninja all the requested linker libraries are there e.g. /usr/local/lib/libboost_date_time.so>
> Boost 1.70
> When using Boost 1.70 all I get in the CMakeLists.txt file are entries like:
> //The directory containing a CMake configuration file for boost_date_time.
> boost_date_time_DIR:PATH=/usr/local/lib/cmake/boost_date_time-1.70.0

Installation of Boost 1.70 generates and deploys a brand new BoostConfig.cmake
machinery which is still being tested.

Try setting -DBoost_NO_BOOST_CMAKE=ON to get the old FindBoost.cmake behaviour
https://github.com/Kitware/CMake/blob/master/Modules/FindBoost.cmake#L238

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net


More information about the CMake mailing list