# cmake missing boost error

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

## 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 on other sites

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 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 on other sites

nice

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

1. 1
2. 2
Rutin
22
3. 3
4. 4
JoeJ
16
5. 5

• 14
• 29
• 13
• 11
• 11
• ### Forum Statistics

• Total Topics
631774
• Total Posts
3002286
×