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

Add tags for boost versions #97

Open
iboB opened this issue Jan 14, 2021 · 3 comments
Open

Add tags for boost versions #97

iboB opened this issue Jan 14, 2021 · 3 comments

Comments

@iboB
Copy link

iboB commented Jan 14, 2021

I see that new boost versions are being added to the repo, but the repo tags aren't updated.

Can you please update the tags to make it easier for shallow clones or other tag-based downloads?

@bilke
Copy link

bilke commented Mar 15, 2021

This would be really cool as it would help in using this repo with CPM. CPM uses the tags for versioning.

@freol35241
Copy link

freol35241 commented Jun 3, 2021

@bilke

FYI, for use with CPM, I ended up doing the following (bypassing this repo since I only need header-only parts of boost anyway and to be able to update the version of boost when I want):

CPMAddPackage(
  NAME Boost
  VERSION 1.76.0
  URL https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz
  DOWNLOAD_ONLY True 
)
if(Boost_ADDED)
  # Define the header-only Boost target
  add_library(Boost::boost INTERFACE IMPORTED GLOBAL)
  target_include_directories(Boost::boost SYSTEM INTERFACE ${Boost_SOURCE_DIR})

  # Disable autolink
  target_compile_definitions(Boost::boost INTERFACE BOOST_ALL_NO_LIB=1)
endif()

target_link_libraries(<your_target> Boost::boost)

@iboB
Copy link
Author

iboB commented Jun 8, 2021

@freol35241 same here

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

3 participants