On 9/18/12, Doug <[email protected]> wrote: > Just idly though, I've never yet encountered a situation where: > > if(APPLE) > ... > elseif(UNIX) > ... > endif() > > Wasn't sufficient.
I have plenty of these situations :P The most common case though is that 3rd party dynamic libraries are not allowed on iOS so generally I have to build things differently for iOS. Another case is sometimes features need to be removed to avoid the risk of rejection by the AppStore (e.g. don't compile in calls to mprotect()). And sometimes sub-components need to be different/replaced/removed compared to their Mac counterparts. LGPL libraries are a frequent issue. But specializations such as Ogg Vorbis vs. Ogg Tremor (integer version) also require different build instructions depending on the platform (Mac vs. iOS). x86 is not an indicator because the iOS Simulator is i386 which needs to be compiled like any other iOS device. -Eric -- Beginning iPhone Games Development http://playcontrol.net/iphonegamebook/ -- 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
