xmake-io / xmake-repo

📦 An official xmake package repository
https://xrepo.xmake.io
Apache License 2.0
616 stars 369 forks source link

add yalantinglibs #4501

Closed heheda123123 closed 1 week ago

star-hengxing commented 1 week ago

参考这个,一堆东西没适配呢。。 https://github.com/xmake-io/xmake-repo/pull/4264

heheda123123 commented 1 week ago

参考这个,一堆东西没适配呢。。 #4264

我开始也用它自带的cmakelists.txt,跑出来有问题(比如它默认就会把其他的包iguana/cinatra给复制过来),后来一想它就是个headeronly库,没必要搞那么复杂 它自带的几个选项主要是优化相关的,不影响功能

Issues-translate-bot commented 1 week ago

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


Refer to this, a lot of things are not adapted. . #4264

I started using the cmakelists.txt that comes with it, but there were problems when running it. Then I thought it was a headeronly library, so there was no need to make it so complicated.

star-hengxing commented 1 week ago

patch 掉,只走 install 分支 https://github.com/alibaba/yalantinglibs/blob/main/CMakeLists.txt#L17

关选项 https://github.com/alibaba/yalantinglibs/blob/main/cmake/install.cmake#L7

用 cmake 安装是为了安装 xxconfig,让其他包能找到,而且也方便维护,万一以后头文件除了 include,其他也拷贝呢