Mac:build deyi$ cmake -G Xcode ..
CMake Error:
Xcode 1.5 not supported.
执行下面操作
sudo /usr/bin/xcode-select --switch /Users/deyi/Downloads/Xcode.app
deyideMac:build deyi$
deyideMac:build deyi$
deyideMac:build deyi$ cmake -G Xcode ..
-- The C compiler identification is AppleClang 9.0.0.9000039
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- Check for working C compiler: /Users/deyi/Downloads/Xcode.app/Contents/Develo
解决
本文介绍了一种解决在使用CMake构建项目时遇到的Xcode版本不支持错误的方法。通过使用xcode-select命令切换到指定版本的Xcode,成功解决了CMake无法识别Xcode的问题,并正确识别了Apple Clang编译器。

486

被折叠的 条评论
为什么被折叠?



