Sign in to follow this  

cmake missing boost error

This topic is 823 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

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

This topic is 823 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this