-
-
Notifications
You must be signed in to change notification settings - Fork 818
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
macOS CLion xmake生成的cmakelists编译报错 #3074
Comments
感觉跟 xmake 关系不大,xmake 已经正常生成了动态库 target
然后 cmake 添加了 但是被 clang 给忽略了,然后作为可执行程序去 link 了,所以报错。。
我手动添加 但是 cmake 里面 macosx 上编译动态库,传入的是 反正要么是 cmake 的问题,要么是 clang 的问题,跟 xmake 好像没啥关系。。 |
@waruqi 我发现只要注释掉 target_link_options(lumos PRIVATE
-target
-isysroot
-stdlib=libc++
) 就可以成功链接 |
@waruqi |
应该可以了,更新到 dev 试试 xmake update -s dev |
@waruqi ok了 |
Xmake 版本
2.7.3
操作系统版本和架构
macOS Ventura
描述问题
xmake生成范例项目代码,生成cmakelists.txt然后编译报错
期待的结果
正常编译运行
工程配置
附加信息和错误日志
The text was updated successfully, but these errors were encountered: