Hi, There appears to be a difference in what C++ compiler is detected on OS X, depending on what generator is selected.
Xcode generator: -- The C compiler identification is GNU 4.2.1 -- The CXX compiler identification is GNU 4.2.1 Makefiles generator: -- The C compiler identification is GNU 4.2.1 -- The CXX compiler identification is Clang 3.1.0 This 'breaks' a number of open source projects (BZip2 and Assimp are two examples I have encountered), as this piece of code seems to be common: if (CMAKE_COMPILER_IS_GNUCXX) set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fpic") set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpic") endif (CMAKE_COMPILER_IS_GNUCXX) For now, i've been adding "OR APPLE" to the if condition, although I'm not sure if that's the right approach. Is Clang still considered to be "gcc compatible"? -Matt. -- 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://www.cmake.org/mailman/listinfo/cmake