libhv icon indicating copy to clipboard operation
libhv copied to clipboard

fix: 删除已被忽略的`hconfig.h`

Open blueloveTH opened this issue 11 months ago • 3 comments

hconfig.h是自动生成的文件,并且已配置为忽略,应当删除原始文件,使配置生效。

https://github.com/ithewei/libhv/blob/fded2ba287199d3c20c619e06ddc571e2972ed92/.gitignore#L65

因为这个文件构建时会自动生成,让 git submodule 产生意外变更,造成一些不便。

blueloveTH avatar Jan 20 '25 07:01 blueloveTH

按道理是应该删,但之前有Qt项目没有使用cmake,没法执行cmake configure或者./configure,所以提供了一份默认的hconfig.h

ithewei avatar Jan 22 '25 09:01 ithewei

按道理是应该删,但之前有Qt项目没有使用cmake,没法执行cmake configure或者./configure,所以提供了一份默认的hconfig.h

@ithewei 是否能将现有的 hconfig.h 改为 hconfig.h.default,然后提供一个 configure_default.sh/bat 脚本,在拉取项目后手动执行该脚本以进行兼容?

tayne3 avatar Feb 13 '25 09:02 tayne3

确实是使用cmake编译后,老是提示 hconfig.h有改动,看看能不能考虑把hconfig.h去掉。如果是windows下要使用这份默认的hconfig.h,是不是可以在代码里面做出区分hconfig_win.h? 类unix系统使用自动生成的hconfig.h

okman334 avatar Feb 27 '25 10:02 okman334