Skip to content

Having ode conditionally depend on Boost::MPI (or allow standalone for cmake) #82

Description

@SteveBronder

odeint's cmake currently requires Boost::mpi (see here) and I think a few other boost libraries that much be prebuilt before hand. I think mpi can be kind of a big requirement for a lot of users. It's possible for odeint to be included as a header only library if it is in standalone mode.

Could you add a cmake flag to specify whether the other boost libraries should be included as dependencies? Something like

if (not BOOST_NUMERIC_ODEINT_STANDALONE)
  target_link_libraries(boost_numeric_odeint ...)
else()
  target_compile_definitions(boost_numeric_odeint BOOST_NUMERIC_ODEINT_STANDALONE)
endif()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions