If this is the case, how would one go about enabling compiler options specifically for Xcode?
My project currently supports gcc and msvc which I check with CMAKE_COMPILER_IS_GNUCC or MSVC variables respectively. Since Xcode uses clang but CMAKE_C_COMPILER is set to gcc, the gcc compiler flags are being passed to clang. -Ho On Jul 26, 2012, at 12:10 PM, Ho Cheung <[email protected]> wrote: > Hi developers, > > As some of you have heard, Apple released Mountain Lion yesterday alongside a > new release of Xcode (4.4). > > Back in XCode 4.2, Apple decided to make the clang/LLVM compiler the default > in XCode > > Whenever I run the Xcode generator and Configure my project, I noticed that > CMAKE_C_COMPILER is pointing to /usr/bin/gcc. However, when I open the > project up in Xcode, I noticed that the compiler is still set to Default > (LLVM 3.0) and all the messages indicate that clang is being run. > > I'm not sure this behavior is new to Xcode 4.4 or Mountain Lion or regresses > back to Lion/Xcode 4.3 as I haven't used Xcode for development of my project > since Snow Leopard/Xcode 3.x. > > Could anyone advise? > > Thanks, > > Ho Cheung -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
