[CMake] Building with Cmake using Boost problem

Hendrik Sattler post at hendrik-sattler.de
Wed Mar 16 17:43:18 EDT 2016



Am 16. März 2016 22:13:14 MEZ, schrieb Karel Geiregat <karelgeiregat at gmail.com>:

>According to the cmake documentation of FindBoost
><https://cmake.org/cmake/help/v3.0/module/FindBoost.html> you have to
>name
>the required libraries as described;
>
>"date_time" for "libboost_date_time"

You do NOT have to rename any files! Doing so completely defeats the purpose of a find module.

Additionally, .lib files for Microsoft compilers do NOT start like libxxx.lib but only xxx.lib
Building boost with your compiler should give you the right files as-is.

Why are you reading documentation of cmake 3.0 when using cmake 3.5? I cannot find anything in the documentation of the boost find module about renaming.
However it documents steps to debug problems.

HS



More information about the CMake mailing list