1

So I've got boost installed in C:\Program Files\boost_1_47_0\, with the library files in ./stage/lib/ and include files in ./boost/*

So I set an environment variable, BOOST_ROOT to C:\Program Files\boost_1_47_0 and run cmake on my project. I get errors that it can't find the requested boost libraries (math_c99, program_options, unit_test_framework).

This is odd, since I have the .lib files for all of them in BOOST_ROOT\stage\lib, and the include files are all there too.

I even added a SET(BOOST_LIBRARYDIR ... according to this question but still no luck. Any idea what gives?

Community
  • 1
  • 1
mamidon
  • 895
  • 1
  • 10
  • 25

1 Answers1

2

Try to add the line

SET(Boost_ADDITIONAL_VERSIONS "1.47" "1.47.0")

before calling find_package.

Andrey Kamaev
  • 29,582
  • 6
  • 94
  • 88
  • Arg, our CMakeList file only had it up to version 1.45... now on to Armadillo, probably a similar thing. – mamidon Sep 16 '11 at 02:30