Code Monkey home page Code Monkey logo

Comments (5)

h-vetinari avatar h-vetinari commented on June 17, 2024

The answer is simply that libboost-headers does not contain the CMake metadata, which is in libboost-devel.

from boost-feedstock.

tdegeus avatar tdegeus commented on June 17, 2024

From this feedstock's perspective, I agree. Yet:

  1. I would say that I would not need Boost's CMake files. It should suffice to use the default https://cmake.org/cmake/help/latest/module/FindBoost.html
  2. Since I'm not linking against Boost I would really like to not depend on libboost-devel

Again, it is a bit of a vague issue because my CI is simply passing by using https://cmake.org/cmake/help/latest/module/FindBoost.html . Yet, I cannot figure out what the installation-specific issue could be.

from boost-feedstock.

h-vetinari avatar h-vetinari commented on June 17, 2024

There are different ways to "find" boost, and because boost is so ubiquitous, CMake even has its own FindBoost function (which actually gets preferred over our metadata, unless you do find_package(boost CONFIG)). In particular, certain detection mechanisms will be happy enough with finding the right headers somewhere, and deducing the rest from that.

I cannot tell what's happening in your specific situation, but you can ensure that your $PREFIX is set correctly, and if that fails, it's really not a big deal to depend on libboost-devel. Effectively, that's all that existed before the recent refactor, and if you want to avoid the run-export, you can do either of

ignore_run_exports_from:
  - libboost-devel

or

ignore_run_exports:
  - libboost

(both are equivalent, their only difference is if they are addressing the run-exporteR or the run-exporteE)

Finally, I get that this is not an amazing setup. We'd like to have CMake metadata even just for the headers. But that's a bit complicated with how CMake metadata is all in the same set of files, and we can't split them well across different packages.

from boost-feedstock.

tdegeus avatar tdegeus commented on June 17, 2024

Thanks for the tips. Like you say, it would have been ideal to separate CMake header-only support, but that is rather an upstream request.

As to my non-reproducible issue: I'll do some more investigating, hopefully I will find out.

from boost-feedstock.

tdegeus avatar tdegeus commented on June 17, 2024

For documentation purposes:

I did come across a reproducer : https://readthedocs.org/projects/gooseeye/builds/22752796/ . It seems that there may be a naming inconsistency somewhere upstream. The complaint is

Could NOT find Boost (missing: Boost_INCLUDE_DIR)

Indeed https://cmake.org/cmake/help/latest/module/FindBoost.html mentions Boost_INCLUDE_DIRS (notice the plural). I cannot really figure out who made a 'mistake' and why this lets my CMake fail.

cc @h-vetinari

from boost-feedstock.

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.