[CMake] Building Mac OSX .apps for Sys 10.6 and 10.8 with Cmake using 10.7.5 on the command line
Sean McBride
sean at rogue-research.com
Thu Feb 7 20:18:43 EST 2013
On Thu, 7 Feb 2013 17:05:55 -0800, Ed said:
>I am trying to build an app to be compatible with Mac OSX systems 10.6,
>10.7, and 10.8 using the command line with cmake. I have successfully
>built it for 10.7.5, now I would like to expand this app to be
>compatible with 10.6 and 10.8 is this possible?
>This is the command I am issuing to cmake:
>cmake -DCMAKE_OSX_64=ON -DCMAKE_C_COMPILER=/usr/bin/gcc -
>DCMAKE_CXX_COMPILER=/usr/bin/g++ ..
>
>Could anyone help me to build this app to be compatible with the other
>two system?
The most important thing is to set the deployment target to 10.6. See "CMAKE_OSX_DEPLOYMENT_TARGET". If you want to support both 32 and 64 bit CPUs, you should also set the architectures, see "CMAKE_OSX_ARCHITECTURES".
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the CMake
mailing list