繁体   English   中英

尝试从 cmake 文件夹生成 Xcode 项目时,我收到与 Xcode 新构建系统相关的错误。 任何可能的解决方案?

[英]When trying to generate an Xcode project from a cmake folder, I get an error related to Xcode new build system. Any possible solution?

我正在尝试使用这个非常好的答案从 cmake 文件夹中生成 Xcode 项目。 执行此命令时:

cmake -G Xcode <dir of CMakeLists.txt>

我得到:

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.

Can I somehow specify to cmake -G Xcode to use the old Xcode build system, or can I somehow solve the problem changing the cmake files? 任何帮助是极大的赞赏。 谢谢

我在这里找到了答案。 可以通过以下方式使用旧版构建系统:

cmake -G Xcode -T buildsystem=1 .

非常感谢您的关注。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM