Skip to content

Poac package build C++ standard #647

Answered by ken-matsui
oraqlle asked this question in Q&A
Discussion options

You must be logged in to vote

This is also not implemented, but I plan to implement the following.

  1. A dependency which is a build-required package (provides libraries) will be built using the package's standard (not the current project's standard).
  2. A dependency which is a header-only package will be built using the current project's standard.

Case 1 is similar to Cargo, but 2 is not.
If the current project's standard (the edition key) is older than the header-only dependencies' standards, then Poac will emit an error.
However, since edition which is implicitly the minimum required version is confusing, it might be better to be able to specify a supported standard range like dependencies:

[package]
edition = ">=2011 a…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@oraqlle
Comment options

@ken-matsui
Comment options

Answer selected by oraqlle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants