Path with xxx-include not included in pch
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
Bot detected the issue body's language is not English, translate it automatically.
Xmake version
xmake v2.9.3+dev.7f0f823bc
Operating system version and architecture
Windows 11
Describe the problem
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
Expected results
Normally accept include
Project configuration
add_includedirs("test/my-include"); set_pcxxheader("pch.h");
Additional information and error logs
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
https://github.com/MaxwellGengYF/test_xmake
再试试,https://github.com/xmake-io/xmake/pull/5284
没问题了。
Bot detected the issue body's language is not English, translate it automatically.
No problem.