cmake missing boost error

Started by
2 comments, last by Alberth 8 years, 7 months ago

So, I'm trying to use cmake on the mysql c++ connector, problem is, i keep getting:


CMake Error at CMakeLists.txt:159 (MESSAGE):
  Boost or some of its libraries found.  If not in standard place please set
  -DBOOST_ROOT:STRING=

I tried to set an environment variable, called DBOOST_ROOT that points to the directory, in boost, which contains all the headers:

C:\Users\Noatom\Desktop\boost_1_58_0\boost

However, to no success.

What am I doing wrong?

Advertisement

Maybe drop the last "\boost" ?

There are also some log files in the CMakeFiles directory, maybe those point you to what actually goes wrong?

Using just

C:\Users\Noatom\Desktop\boost_1_58_0

Has no effect either.

The log where the output should, has no actual errors, or any line of text related to boost.

SOLVED

Apparently, even though the error contains the part: DBOOST_ROOT

The actual environment variable should be called BOOST_ROOT without the D

nice smile.png

The "D" is part of the -D option, which allows you to define variables at the command line.

Edit: Oh, I see now that you mentioned DBOOST as well, sorry for not spotting it

This topic is closed to new replies.

Advertisement