[CMake] xcode-select and CMake -G Xcode

Harry Mallon Harry at codexdigital.com
Thu Sep 15 08:15:12 EDT 2016


Hello,

I saw XCode 8 was released so i duplicated my XCode install and updated it. CMake now fails if I use xcode-select -s to choose the old XCode. It seems that if the XCode path has a space in it it fails.

i.e.

With "xcode-select -s /Applications/Xcode\ copy.app/Contents/Developer":

$ cmake -GXcode ../src/
-- The C compiler identification is AppleClang 7.3.0.7030031
-- The CXX compiler identification is AppleClang 7.3.0.7030031
CMake Error at CMakeLists.txt:71 (project):
  No CMAKE_C_COMPILER could be found.



CMake Error at CMakeLists.txt:71 (project):
  No CMAKE_CXX_COMPILER could be found.



-- Configuring incomplete, errors occurred!

With "xcode-select -s /Applications/Xcode2.app/Contents/Developer" it is fine and this is a reasonable workaround for me.

Harry

Harry Mallon
CODEX | Software Engineer
60 Poland Street | London | England | W1F 7NT
E harry at codexdigital.com | T +44 203 7000 989


More information about the CMake mailing list