Closed PolarLinda6 closed 2 months ago
Bot detected the issue body's language is not English, translate it automatically.
Title: cmakelists generation does not support compiler flags
试下这个 patch https://github.com/xmake-io/xmake/pull/5487
xmake update -s github:xmake-io/xmake#cmake
试下这个 patch #5487
xmake update -s github:xmake-io/xmake#cmake
我已经更新到了新的分支, 但我遇到了一个问题:
set(CMAKE_C_COMPILER "/usr/sbin/gcc") set(CMAKE_CXX_COMPILER "/usr/sbin/g++")
会重复生成( 与 target 数目相同 )
再试试
Bot detected the issue body's language is not English, translate it automatically.
try again
可以了么
Bot detected the issue body's language is not English, translate it automatically.
Is it ok?
可以了么
我遇到了新的问题: set_runtimes 出现了错误, gcc clang 配置消失, msvc 配置错误
PS: 作者是否可以支持 set runtimes的编译器 flag 呢?( 使用 if 配置很痛苦 )
if "clang" == get_config("toolchain") then
set_runtimes("c++_shared")
elseif "gcc" == get_config("toolchain") then
set_runtimes("stdc++_static")
end
不同的问题不要混一起,这个跟当前的 issues 无关。如果当前的 issues 确认已经修复,我就 close 了。。
其他的问题 单独开 issues
不同的问题不要混一起,这个跟当前的 issues 无关。如果当前的 issues 确认已经修复,我就 close 了。。
其他的问题 单独开 issues
好的, 谢谢作者了
Bot detected the issue body's language is not English, translate it automatically.
Don't mix different issues together. This has nothing to do with the current issues. If the current issues are confirmed to have been fixed, I will close them. .
Open other issues separately
Bot detected the issue body's language is not English, translate it automatically.
Do not mix different issues together. This has nothing to do with the current issues. If the current issues are confirmed to have been fixed, I will close them. .
Other issues, open separate issues
Okay, thank you author
Xmake 版本
2.9.4
操作系统版本和架构
Windows 11 version 23H2
描述问题
xmake project -k cmakelists 生成 cmakelists
期待的结果
工程配置
附加信息和错误日志