• Advertisement
Sign in to follow this  

cmake missing boost error

This topic is 952 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Edited by noatom

Share this post


Link to post
Share on other sites
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?

Edited by Alberth

Share this post


Link to post
Share on other sites

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

Edited by noatom

Share this post


Link to post
Share on other sites

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

Edited by Alberth

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement