Skip to content
Discussion options

You must be logged in to vote

xmake has a dependency conflict check, if there are no errors reported, there is no conflict. This is because different versions of the same package are allowed to be used for different targets.

Only if there are multiple versions of the same package on a dependency link will there be a conflict. A -> B 1.1 -> C -> B 1.0

add_requires("fmt 9", "spdlog 1.11", { configs = { fmt_external = true }})

You are currently using a package configuration that does not have any conflicts.

- fmt 9
- spdlog -> fmt  10

If you want to keep their versions consistent, you can solve that with add_requireconfs as well.

add_requireconfs("spdlog.fmt", {version = "9", override = true})

Replies: 1 comment 2 replies

Comment options

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

@calebkiage
Comment options

Answer selected by calebkiage
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