我正在尝试使用这个非常好的答案从 cmake 文件夹生成一个 Xcode 项目。执行此命令时:
cmake -G Xcode <dir of CMakeLists.txt>
Run Code Online (Sandbox Code Playgroud)
我得到:
CMake Error in CMakeLists.txt:
The custom command generating
/Users/fofo/Developer/ClientProject/desktop/always_build
is attached to multiple targets:
rake-all
stage
but none of these is a common dependency of the other(s). This is not
allowed by the Xcode "new build system".
CMake Generate step failed. Build files cannot be regenerated correctly.
Run Code Online (Sandbox Code Playgroud)
我可以以某种方式指定 cmake -G Xcode 使用旧的 Xcode 构建系统,还是可以以某种方式解决更改 cmake 文件的问题?任何帮助是极大的赞赏。谢谢
Alf*_*uro 10
我在这里找到了答案。可以通过以下方式使用旧版构建系统:
cmake -G Xcode -T buildsystem=1 .
Run Code Online (Sandbox Code Playgroud)
非常感谢您的关注。
| 归档时间: |
|
| 查看次数: |
840 次 |
| 最近记录: |