Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xmake转为cmakelists时存在转换错误 #4006

Closed
limuy2022 opened this issue Jul 25, 2023 · 4 comments
Closed

xmake转为cmakelists时存在转换错误 #4006

limuy2022 opened this issue Jul 25, 2023 · 4 comments
Labels

Comments

@limuy2022
Copy link

limuy2022 commented Jul 25, 2023

Xmake 版本

v2.8.1+20230711

操作系统版本和架构

Archlinux

描述问题

我正在使用xmake的c++ module功能时,发现转换后的cmakelists包含一句没有输入文件的clang编译命令

COMMAND /usr/local/bin/clang -Qunused-arguments -m64 -fPIC -g -Wall -Werror -O0 -std=c++23 -I${CMAKE_SOURCE_DIR}/src/include -DBUILD_language_DLL

这导致clang报错

clang: error: no input file

期待的结果

正常生成可编译的cmakelists

工程配置

target("Trc")
set_kind("binary")
add_files("src/.cpp", "src/.cppm", "language/**.cppm")
add_subdirs("language")
add_deps("language")

附加信息和错误日志

@limuy2022 limuy2022 added the bug label Jul 25, 2023
@Issues-translate-bot
Copy link

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


Title: There is a conversion error when xmake converts to cmakelists

@waruqi
Copy link
Member

waruqi commented Jul 25, 2023

see #3642

@limuy2022
Copy link
Author

好的,我明白了,看来还是要等cmake官方支持c++ module了,xmake才好做

@Issues-translate-bot
Copy link

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


Ok, I understand, it seems that we still have to wait for cmake to officially support the c++ module, so that xmake can do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants