I'm using CMake to generate a project file for Xcode 4.2 on OSX Lion, and I'm using some of the C++0x features in LLVM like nullptr and auto. In order to use these, Xcode requires that 2 project settings be set:
C++ Language Dialect set to C++0x [-std=C++0x]
C++ Standard Library set to libc++ (LLVM C++ standard library with C++'0X support)
Currently every time I generate an Xcode project, I have to go in and manually adjust these settings.
Is there a way to specify these settings in CMake?
Thanks
Best Answer
after digging into this for a little, these are the commands to set the appropriate xcode settings:
I think setting the c++ flags is redundant, so it might also work without the last line.
hope that helps!