我正在尝试使用这个很好的答案,从一个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.
我是否可以在cmake -G Xcode <CMakeLists.txt所在的目录>
中指定使用旧版Xcode构建系统,或者我是否可以通过更改cmake文件来解决问题?