xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
10.14k stars 782 forks source link

Path with xxx-include not included in pch #5270

Closed MaxwellGengYF closed 4 months ago

MaxwellGengYF commented 4 months ago

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

Issues-translate-bot commented 4 months ago

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

waruqi commented 4 months ago

给个完整 project example

Issues-translate-bot commented 4 months ago

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


Give a complete project example

MaxwellGengYF commented 4 months ago

https://github.com/MaxwellGengYF/test_xmake

waruqi commented 4 months ago

再试试,https://github.com/xmake-io/xmake/pull/5284

MaxwellGengYF commented 4 months ago

没问题了。

Issues-translate-bot commented 4 months ago

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


No problem.