hardcode full compiler path when compiling for ppc 0.9.19
authorkoda
Sat, 20 Apr 2013 20:39:37 +0200
branch0.9.19
changeset 8929 499243eb04d1
parent 8928 10a79d89ca31
child 8930 a71599790f7a
hardcode full compiler path when compiling for ppc
CMakeLists.txt
--- a/CMakeLists.txt	Sat Apr 20 20:39:01 2013 +0200
+++ b/CMakeLists.txt	Sat Apr 20 20:39:37 2013 +0200
@@ -182,8 +182,8 @@
     if(NOT ${minimum_macosx_version} VERSION_EQUAL ${current_macosx_version})
         if(minimum_macosx_version VERSION_EQUAL "10.4")
             set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.4u.sdk/")
-            set(CMAKE_C_COMPILER "gcc-4.0")
-            set(CMAKE_CXX_COMPILER "g++-4.0")
+            set(CMAKE_C_COMPILER "/Developer/usr/bin/gcc-4.0")
+            set(CMAKE_CXX_COMPILER "/Developer/usr/bin/g++-4.0")
         else()
             string(REGEX REPLACE "([0-9]+.[0-9]+).[0-9]+" "\\1" sdk_version ${minimum_macosx_version})
             set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX${sdk_version}.sdk/")