ben
ben

Reputation: 217

CMake finds wrong boost version

I run find_package(Boost) and CMake outputs 1.53. But I have installed 1.62 via the package manager. Unfortunately I need > 1.58. See screenshot. I am using Debian 9, Stable, 64 bit. I am trying to build GnuRadio via Pybombs... enter image description here

Upvotes: 1

Views: 1649

Answers (1)

ben
ben

Reputation: 217

Problem solved. Apparently CMake checked a version.hpp file which was locally installed (/usr/local/include/boost), probably by me a long time ago...

Funny thing though, there was no corresponding library and CMake was also not trying to look into the default directories. I had to do the following:

  • SET(BOOST_INCLUDEDIR "/usr/include/boost")
  • SET(BOOST_LIBRARYDIR"/usr/lib/x86_64-linux-gnu")

I found the bug by using the debugging flag

  • SET(Boost_DEBUG ON)

Maybe it is useful for somebody :)

Upvotes: 5

Related Questions