[CMake] MACOSX_DEPLOYMENT_TARGET
William A. Hoffman
billlist at nycap.rr.com
Wed Oct 11 20:27:03 EDT 2006
At 07:19 PM 10/11/2006, Axel Roebel wrote:
>This is exactly what I do currently.
>I thought there would may be exist an easier way.
>I now see that my main problem is how I replace the compiler:
>
>I patch CMakeFiles/CMakeCCompiler.cmake
>from within CMakeLists.txt,
>while I probably should simply do
>
>SET(CMAKE_C_COMPILER path/gcc-osx-10.3)
>
>I think when I tried that with an older cmake like 2.2...
>this SET would not override the compiler.
>
>With 2.4.3 I still find the original compiler /usr/bin/gcc
>in the CMakeCache.txt but at least the build.cmake
>has the script.
You need to set the environment variable CC=/path/gcc-osx-10.3 and CXX,
before you run cmake or ccmake. Also, with a clean directory.
-Bill
More information about the CMake
mailing list