scipopt / soplex

Sequential object-oriented simPlex
Other
59 stars 18 forks source link

Boost dependency in libsoplex #12

Closed soesau closed 1 year ago

soesau commented 1 year ago

Hi!

If libsoplex is compiled with boost the soplex/spxdefines.h includes headers from boost/multiprecision. Thus, projects using soplex need to include boost in their projects. In this case the soplex-config.cmake should include boost (find_package(boost, etc...).

This problem showed up while compiling scip 8.0.2 on Windows 10 using MSVC2022 and CMake 3.23.1.

Thank you, Sven

leoneifler commented 1 year ago

Hi Sven, sorry this took a while to answer. Can you check if this patch resolves the issue for you? If so then we will merge the fix. config.zip

soesau commented 1 year ago

Hi Leon, does not work. It does, however, when I remove the if(DEFINED SOPLEX_WITH_BOOST). I managed to solve it by changing also the cmakelists.txt. I created a pull request.