Closed MaxwellGengYF closed 4 months ago
Bot detected the issue body's language is not English, translate it automatically.
Xmake version
xmake v2.9.3+dev.7f0f823bc
Windows 11
When the add_includedirs path is xxx-include, such as modules/my-include, the pch defined by set_pcxxheader will not be compiled correctly include
Normally accept include
add_includedirs("test/my-include"); set_pcxxheader("pch.h");
fatal error: 'xx.h' file not found
给个完整 project example
Bot detected the issue body's language is not English, translate it automatically.
Give a complete project example
没问题了。
Bot detected the issue body's language is not English, translate it automatically.
No problem.
Xmake 版本
xmake v2.9.3+dev.7f0f823bc
操作系统版本和架构
Windows 11
描述问题
当add_includedirs 路径为 xxx-include,如 modules/my-include 时,set_pcxxheader 定义的pch编译不会正确 include
期待的结果
正常接受 include
工程配置
add_includedirs("test/my-include"); set_pcxxheader("pch.h");
附加信息和错误日志
fatal error: 'xx.h' file not found