Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boost with find package and global #641

Open
blozano-tt opened this issue Feb 8, 2025 · 2 comments
Open

Boost with find package and global #641

blozano-tt opened this issue Feb 8, 2025 · 2 comments

Comments

@blozano-tt
Copy link

blozano-tt commented Feb 8, 2025

For some reason I can’t force find_package fallback here when doing CPM_USE_LOCAL_PACKAGE

Any ideas?

https://github.com/tenstorrent/tt-metal/actions/runs/13209960075/job/36882119965

CPMAddPackage(
    NAME Boost
    VERSION 1.86.0
    URL
        https://github.com/boostorg/boost/releases/download/boost-1.86.0/boost-1.86.0-cmake.tar.xz
        URL_HASH
        SHA256=2c5ec5edcdff47ff55e27ed9560b0a0b94b07bd07ed9928b476150e16b0efc57
    OPTIONS
        "BOOST_ENABLE_CMAKE ON"
        "BOOST_SKIP_INSTALL_RULES ON"
        "BUILD_SHARED_LIBS OFF"
        "BOOST_INCLUDE_LIBRARIES core\\\;container\\\;smart_ptr\\\;interprocess"
    FIND_PACKAGE_ARGUMENTS "GLOBAL"
)
@blozano-tt
Copy link
Author

Maybe I need

COMPONENTS core smart_ptr container interprocess

@blozano-tt
Copy link
Author

This is a painful rabbit hole...

I am learning that if you install boost system wide, the BoostConfig.cmake has only a couple targets:

  • Boost::boost
  • Boost::headers

The targets Boost::core, Boost::container, Boost::smart_ptr, Boost::interprocess are not available.

I have yet to figure out how you can install boost in the system with those targets. I am trying to build from source using b2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant