xmake icon indicating copy to clipboard operation
xmake copied to clipboard

Path with xxx-include not included in pch

Open MaxwellGengYF opened this issue 1 year ago • 3 comments

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

MaxwellGengYF avatar Jun 28 '24 11:06 MaxwellGengYF

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

Issues-translate-bot avatar Jun 28 '24 11:06 Issues-translate-bot

给个完整 project example

waruqi avatar Jun 28 '24 15:06 waruqi

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


Give a complete project example

Issues-translate-bot avatar Jun 28 '24 15:06 Issues-translate-bot

https://github.com/MaxwellGengYF/test_xmake

MaxwellGengYF avatar Jul 01 '24 05:07 MaxwellGengYF

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

waruqi avatar Jul 01 '24 05:07 waruqi

没问题了。

MaxwellGengYF avatar Jul 01 '24 07:07 MaxwellGengYF

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


No problem.

Issues-translate-bot avatar Jul 01 '24 08:07 Issues-translate-bot