Skip to content

Conversation

@blueloveTH
Copy link

@blueloveTH blueloveTH commented Jan 20, 2025

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

hconfig.h

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

@ithewei
Copy link
Owner

ithewei commented Jan 22, 2025

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

@tayne3
Copy link
Contributor

tayne3 commented Feb 13, 2025

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

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

@okman334
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants