xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
10.14k stars 783 forks source link

`add_requireconf` like api with package #5504

Open star-hengxing opened 2 months ago

star-hengxing commented 2 months ago

Is your feature request related to a problem? Please describe.

as title

Describe the solution you'd like

这个包 https://github.com/xmake-io/xmake-repo/pull/5019 需要 openssl3,但 deps 链已经 add 了 openssl (curlpp -> libcurl -> openssl)

目前好像没有办法去修改 libcurl 的 openssl 统一版本,导致 cmake 找到了两个版本的 openssl 且构建失败

Describe alternatives you've considered

No response

Additional context

No response

waruqi commented 2 months ago

这种即使 package 支持 add_requireconf 也没用,add_requireconfs 只能改现有 deps 的配置,但是这个还得改 openssl/openssl3 deps切换。

除非整合到 openssl 同时支持 3.x ,但是这样默认所有依赖 openssl 的包,都会被自动切到 openssl 3.x 最新版,会 break 更多的包。

Issues-translate-bot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically.


This is useless even if the package supports add_requireconf. add_requireconfs can only change the configuration of existing deps, but this requires changing the openssl/openssl3 deps switch.

Unless it is integrated into openssl and supports 3.x at the same time, by default all packages that depend on openssl will be automatically switched to the latest version of openssl 3.x, which will break more packages.