GithubHelp home page GithubHelp logo

Add tags for boost versions about boost-cmake HOT 3 OPEN

orphis avatar orphis commented on August 16, 2024 3
Add tags for boost versions

from boost-cmake.

Comments (3)

bilke avatar bilke commented on August 16, 2024 3

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

from boost-cmake.

freol35241 avatar freol35241 commented on August 16, 2024 2

@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)

from boost-cmake.

iboB avatar iboB commented on August 16, 2024

@freol35241 same here

from boost-cmake.

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.