On 17.12.2018 12:42, Osman Zakir via Boost-users wrote:
I looked in the FindBoost.cmake module and saw that version 1.69.0 is already listed as a known version.  But when I configured CMake to build Jinja2Cpp after building Boost 1.69.0, I couldn't get it to find some modules of Boost.  There were warning messages about imported targets and dependences or some such.  Jinja2Cpp uses an earlier version of Boost from its own submodule in this case (it has a GitHub repository that I cloned from and built), but I'd like it if it used the latest version of Boost instead of an earlier version.  

My Boost installation is in C:/boost_1_69_0/, by the way.  Could this be causing problems, or will it still be fine I configure CMake correctly?  What CMake option should I use to find Boost?  -DBOOST_ROOT?

I usually set both BOOST_ROOT and BOOST_LIBRARYDIR in the environment. The latter to match the Visual Studio version and the desired code model (win32 vs. win64) as I usually install multiple library binaries.


Cheers,

Leon