CQMP / Maxent

GNU General Public License v2.0
16 stars 14 forks source link

Travis build can't find boost libs #48

Open ryanlevy opened 5 years ago

ryanlevy commented 5 years ago

As discovered in #47, Travis fails on the cmake scripts when finding boost_program_options (the compiled lib)

galexv commented 5 years ago

It might be an ALPSCore problem, i'll look at it shortly.

ryanlevy commented 5 years ago

I've loaded up a Ubuntu 14.04 VM and cannot replicate this error for some reason

Thanks!

ryanlevy commented 5 years ago

Correction: this happens in my Ubuntu 18.04.1 LTS

galexv commented 5 years ago

What is the cmake version in Ubuntu 18.04?

ryanlevy commented 5 years ago

version 3.10.2 (and 3.5.1 in 14.04 which seems to be behind travis)

galexv commented 5 years ago

Thanks! In the Travis build CMake 3.9.2 is used.

galexv commented 5 years ago

...and i can reproduce the error with CMake 3.9.6.

galexv commented 5 years ago

Quick workaround: in CMakeLists.txt, right after find_package(ALPSCore 2.0 REQUIRED), add set(Boost_NO_SYSTEM_PATHS false).

ryanlevy commented 5 years ago

That fixes it with cmake 3.10.2!

galexv commented 5 years ago

It's a bug in ALPSCore, i am thinking how best to fix it while still deterring the ALPSCore user from accidentally finding the wrong Boost. So, do not add this workaround to the repository yet: it's better to have ALPSCore fixed.