Giter Site home page Giter Site logo

Comments (8)

pdimov avatar pdimov commented on May 30, 2024 1

Now, how do I use these CMake files in cmake projects?

find_package(Boost) will automatically use them if they are installed somewhere in the CMake search path.

from boost_install.

pdimov avatar pdimov commented on May 30, 2024 1

Looking at the Qt5 package, looks like it installs the .cmake configs in /usr/lib/x86_64-linux-gnu/cmake, which is probably where the Boost ones should go, too.

from boost_install.

pdimov avatar pdimov commented on May 30, 2024

Yes, it looks like Boost.MPI installs a Python extension called mpi: https://github.com/boostorg/mpi/blob/c7fdb33cca09d7248826a340ff40be5eec1e36af/build/Jamfile.v2#L173

I agree that installing a CMake configuration for a package called mpi is not something we should do. Not sure where and how to fix that properly.

from boost_install.

xnox avatar xnox commented on May 30, 2024

I also wee a few other "weird" cmake files:

  • boost_stacktrace_windbg-1.71.0 (nothing like this exists on my linux build)
  • boost_stacktrace_windbg_cached-1.71.0 (nothing like this exists on my linux build)
  • boost_fiber_numa-1.71.0 (in addition to the just boost_fiber, no -numa library exists)
  • boost_math-1.71.0 (in addition to _c99|_ctr1|etc)
  • boost_headers-1.71.0 (no idea what it means..... just header locations without a library?!)

from boost_install.

pdimov avatar pdimov commented on May 30, 2024

The first three are conditionally-built libraries. For complicated Boost.Build reasons the decision to create the CMake config files is made at configure time, and the conditions that govern whether the libraries are built are evaluated later, at build time. Maybe this can be fixed, but it exceeds my Boost.Build abilities at present. :-)

boost_math is my fault (boostorg/math@8d2c59c) and we should probably remove it as it should be no longer required.

boost_headers is important and you do need it. It declares the Boost::headers target that represents all header-only libraries and is the equivalent of the Boost::boost target from FindBoost.

from boost_install.

pdimov avatar pdimov commented on May 30, 2024

boostorg/math#266

from boost_install.

xnox avatar xnox commented on May 30, 2024

Ok, I shall install boost_headers into the main libboost-dev package next to the rest of headers.

I will ignore / purge the conditional libs.

Now, how do I use these CMake files in cmake projects? I.e. I want to convert some of cmake project which currently uses boost-python to use these new fancy cmake files. How can I do that?

Are there docs on how to use these cmake things?

from boost_install.

xnox avatar xnox commented on May 30, 2024

Sure, i don't care about configuring and building them, but they shouldn't be installed (which happens after building) thus should be like present in the builddir, but not installed into the prefix?

from boost_install.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.