# HG changeset patch # User koda # Date 1386287132 -3600 # Node ID c433e74da79b7f105b72e56d1449f01db680c443 # Parent 322fe17363473c0e5fc9b102f94a53db636314b4 use clang on mavericks diff -r 322fe1736347 -r c433e74da79b cmake_modules/platform.cmake --- a/cmake_modules/platform.cmake Fri Dec 06 00:28:55 2013 +0100 +++ b/cmake_modules/platform.cmake Fri Dec 06 00:45:32 2013 +0100 @@ -36,6 +36,12 @@ message(FATAL_ERROR "Hedgewars is not supported on Mac OS X pre-10.4") endif() + #gcc is EOL on these systems + if (current_macosx_version VERSION_GREATER "10.8") + set(CMAKE_C_COMPILER clang) + set(CMAKE_CXX_COMPILER clang++) + endif() + #workaround for http://playcontrol.net/ewing/jibberjabber/big_behind-the-scenes_chang.html#SDL_mixer (Update 2) if(current_macosx_version VERSION_EQUAL "10.4") find_package(SDL_mixer REQUIRED)